1 RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/common.macho.x86_64 -f -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s
3 The test was compiled from a single source:
6 int main() { return 0;}
8 $ clang -g -c common.c -o common.macho.x86_64.o
9 $ clang common.macho.x86_64.o -o common.macho.x86_64
11 CHECK: DW_TAG_variable
12 CHECK: DW_AT_name {{.*}} "common"
13 CHECK-NOT: {{NULL|DW_TAG}}
14 CHECK: DW_AT_location {{.*}} (DW_OP_addr 0x100001000)
16 CHECK: DW_TAG_subprogram
17 CHECK-NEXT: DW_AT_low_pc{{.*}}(0x0000000100000f80)
18 CHECK-NOT: {{NULL|DW_TAG}}
19 CHECK: DW_AT_name {{.*}} "main"
21 CHECK: DW_TAG_subprogram
22 CHECK-NEXT: DW_AT_low_pc{{.*}}(0x0000000100000f90)
23 CHECK-NOT: {{NULL|DW_TAG}}
24 CHECK: DW_AT_name {{.*}} "bar"