3 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames
4 // RUN: ld.lld %t.o -o %t
5 // RUN: lldb-test symbols --name=f.o --regex --find=function %t | FileCheck %s
7 // RUN: %clang %s -g -c -o %t --target=x86_64-apple-macosx
8 // RUN: lldb-test symbols --name=f.o --regex --find=function %t | FileCheck %s
10 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gdwarf-5 -gpubnames
11 // RUN: ld.lld %t.o -o %t
12 // RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix NAMES
13 // RUN: lldb-test symbols --name=f.o --regex --find=function %t | FileCheck %s
15 // NAMES: Name: .debug_names
17 // CHECK: Found 3 functions:
18 // CHECK-DAG: name = "foo()", mangled = "_Z3foov"
19 // CHECK-DAG: name = "ffo()", mangled = "_Z3ffov"
20 // CHECK-DAG: name = "bar::foo()", mangled = "_ZN3bar3fooEv"
29 extern "C" void _start() {}