brintos

brintos / llvm-project-archived public Read only

0
0
Text · 938 B · 5c7ad84 Raw
30 lines · cpp
1// REQUIRES: lld2 3// RUN: %clangxx %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames4// RUN: ld.lld %t.o -o %t5// RUN: lldb-test symbols --name=f.o --regex --find=function %t | FileCheck %s6//7// RUN: %clangxx %s -g -c -o %t --target=x86_64-apple-macosx8// RUN: lldb-test symbols --name=f.o --regex --find=function %t | FileCheck %s9 10// RUN: %clangxx %s -g -c -o %t.o --target=x86_64-pc-linux -gdwarf-5 -gpubnames11// RUN: ld.lld %t.o -o %t12// RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix NAMES13// RUN: lldb-test symbols --name=f.o --regex --find=function %t | FileCheck %s14 15// NAMES: Name: .debug_names16 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"21 22void foo() {}23void ffo() {}24namespace bar {25void foo() {}26} // namespace bar27void fof() {}28 29extern "C" void _start() {}30