1 /* Compiled with: clang -arch=arm64 -O2 -g -c inlined_low_pc.c */
2
foo(int i)3 static int foo(int i) { return 42 + i; }
bar(int a)4 int bar(int a) { return foo(a); }
5
6 // RUN: llvm-dsymutil -f -y %p/dummy-debug-map-amr64.map -oso-prepend-path %p/../Inputs/inlined-low_pc -o - | llvm-dwarfdump - | FileCheck %s
7
8 // CHECK: DW_TAG_subprogram
9 // CHECK: DW_AT_low_pc{{.*}}0x0000000000010000
10 // CHECK: DW_AT_name{{.*}}"bar"
11 // CHECK-NOT: NULL
12 // CHECK: DW_TAG_inlined_subroutine
13 // CHECK-NEXT: DW_AT_abstract_origin{{.*}}"foo"
14 // CHECK-NEXT: DW_AT_low_pc{{.*}}0x0000000000010000
15
16