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