diff options
Diffstat (limited to 'lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp')
-rw-r--r-- | lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp new file mode 100644 index 00000000000..1ad3e7fbadf --- /dev/null +++ b/lldb/test/Shell/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; |