1 RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/common/common.x86_64 -f -o - | llvm-dwarfdump -debug-info - | FileCheck %s
2 RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/common/common.x86_64 -dump-debug-map | FileCheck %s --check-prefix DEBUGMAP
4 The test was compiled from two source files:
5 $ cd /private/tmp/common
16 $ clang -fcommon -g -c common1.c -o common1.o
17 $ clang -fcommon -g -c common2.c -o common2.o
18 $ clang -fcommon -g common1.o common2.o -o common.x86_64
20 CHECK: DW_TAG_compile_unit
21 CHECK: DW_TAG_variable
22 CHECK-NOT: {{NULL|DW_TAG}}
23 CHECK: DW_AT_name{{.*}}"i"
24 CHECK-NOT: {{NULL|DW_TAG}}
25 CHECK: DW_AT_location{{.*}}DW_OP_addr 0x100001000)
27 CHECK: DW_TAG_compile_unit
28 CHECK: DW_TAG_variable
29 CHECK-NOT: {{NULL|DW_TAG}}
30 CHECK: DW_AT_name{{.*}}"i"
31 CHECK-NOT: {{NULL|DW_TAG}}
32 CHECK: DW_AT_location{{.*}}DW_OP_addr 0x100001000)
34 DEBUGMAP: filename:{{.*}}common1.o
36 DEBUGMAP: sym: _i, binAddr: 0x0000000100001000, size: 0x00000000
37 DEBUGMAP: filename:{{.*}}common2.o
39 DEBUGMAP: sym: _i, binAddr: 0x0000000100001000, size: 0x00000000