Files
clang-p2996/lldb/test/Shell/SymbolFile/DWARF/x86/find-method-local-struct.cpp
David Spickett 8a64d80a95 [lldb] Require x86 backend for a bunch of DWARF tests
By moving them into a folder with a local lit config
requiring x86. All these tests use x86 target triples.

There are two tests that require target-x86_64 because
they run program files (instead of just needing the backend).
Those are moved to the x86 folder also but their REQUIRES are
unchanged.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D100193
2021-04-13 08:47:41 +00:00

20 lines
441 B
C++

// 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();
}