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