diff options
Diffstat (limited to 'lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp')
-rw-r--r-- | lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp new file mode 100644 index 00000000000..3da4a4a23f8 --- /dev/null +++ b/lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp @@ -0,0 +1,19 @@ +// RUN: %clang %s -g -c -o %t --target=x86_64-apple-macosx +// RUN: lldb-test symbols --name=foo --find=function --function-flags=method %t | \ +// RUN: FileCheck %s + +// CHECK-DAG: name = "sbar::foo()", mangled = "_ZN4sbar3fooEv" +// CHECK-DAG: name = "ffbar()::sbar::foo()", mangled = "_ZZ5ffbarvEN4sbar3fooEv" + +struct sbar { + void foo(); +}; +void sbar::foo() {} + +void ffbar() { + struct sbar { + void foo() {} + }; + sbar a; + a.foo(); +} |