• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %p/Inputs/debug_addrx.yaml -o %ttest
2# RUN: lldb-test breakpoints %ttest %s | FileCheck %s
3
4# The following code and invocation were used.
5# clang -gdwarf-5 test.cc -o test_v5 -fuse-ld=lld -fno-rtti -O2 -ffunction-sections
6# 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 bar
28
29# CHECK-LABEL: b bar
30# CHECK: Address: {{.*}}`bar(A) at test.cc:15:1
31