diff options
Diffstat (limited to 'lit/SymbolFile/DWARF/find-qualified-variable.cpp')
| -rw-r--r-- | lit/SymbolFile/DWARF/find-qualified-variable.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lit/SymbolFile/DWARF/find-qualified-variable.cpp b/lit/SymbolFile/DWARF/find-qualified-variable.cpp new file mode 100644 index 000000000000..ca1b3184fbe7 --- /dev/null +++ b/lit/SymbolFile/DWARF/find-qualified-variable.cpp @@ -0,0 +1,15 @@ +// RUN: clang %s -g -c -o %t --target=x86_64-apple-macosx +// RUN: lldb-test symbols --name=A::foo --find=variable %t | FileCheck %s + +// CHECK: Found 1 variables: + +struct A { + static int foo; +}; +int A::foo; +// NAME-DAG: name = "foo", {{.*}} decl = find-qualified-variable.cpp:[[@LINE-1]] + +struct B { + static int foo; +}; +int B::foo; |
