1 | // RUN: %clang %s -g -c -o %t --target=x86_64-apple-macosx |
---|---|
2 | // RUN: lldb-test symbols --name=foo --find=function --function-flags=method %t | \ |
3 | // RUN: FileCheck %s |
4 | |
5 | // CHECK-DAG: name = "sbar::foo()", mangled = "_ZN4sbar3fooEv" |
6 | // CHECK-DAG: name = "ffbar()::sbar::foo()", mangled = "_ZZ5ffbarvEN4sbar3fooEv" |
7 | |
8 | struct sbar { |
9 | void foo(); |
10 | }; |
11 | void sbar::foo() {} |
12 | |
13 | void ffbar() { |
14 | struct sbar { |
15 | void foo() {} |
16 | }; |
17 | sbar a; |
18 | a.foo(); |
19 | } |
20 |