After closer examination, it turns out we mis-classify one of the methods only if two of the structs have the same name. Since this was meant to be a basic test, I rename one of the structs in the test so that we have at least some coverage for the apple tables lookup. Instead, I create an XFAILed test which specifically targets the same-name case (and file a bug to track it). llvm-svn: 332833
23 lines
473 B
C++
23 lines
473 B
C++
// llvm.org/pr37537
|
|
// XFAIL: *
|
|
|
|
// 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();
|
|
}
|