brintos

brintos / llvm-project-archived public Read only

0
0
Text · 610 B · b7a3361 Raw
31 lines · plain
1# RUN: yaml2obj %p/Inputs/debug_addrx.yaml -o %ttest2# RUN: lldb-test breakpoints %ttest %s | FileCheck %s3 4# The following code and invocation were used.5# clang -gdwarf-5 test.cc -o test_v5 -fuse-ld=lld -fno-rtti -O2 -ffunction-sections6# Then output was converted to yaml and reduced.7#8# struct A {9#   void foo() {};10# };11# 12# void bar(struct A a) {13#    a.foo();14# }15#16# int main() {17#  A objA;18#  bar(objA);19#20#  return 0;21# }22#23# clang and LLD versions were 8.0.0 (trunk 344834)24#25# Output file contains DW_FORM_addrx forms.26 27b bar28 29# CHECK-LABEL: b bar30# CHECK: Address: {{.*}}`bar(A) at test.cc:15:131