1 // REQUIRES : system-darwin
2 // RUN: dsymutil -oso-prepend-path %p/.. -dump-debug-map \
3 // RUN: %p/../Inputs/global_downgraded_to_static.x86_64 2>&1 | FileCheck %s
5 // RUN: dsymutil --linker llvm -oso-prepend-path %p/.. -dump-debug-map \
6 // RUN: %p/../Inputs/global_downgraded_to_static.x86_64 2>&1 | FileCheck %s
9 // clang -g -c -DFILE1 global_downgraded_to_static.c -o 1.o
10 // clang -g -c -DFILE2 global_downgraded_to_static.c -o 2.o
11 // ld -r -exported_symbol _foo 1.o -o 1.r.o
12 // clang 1.r.o 2.o -o global_downgraded_to_static.x86_64
15 int global_to_become_static
= 42;
16 // CHECK: sym: _global_to_become_static,
17 // CHECK-SAME: binAddr: 0x100001000
19 return global_to_become_static
;
27 #error Define FILE1 or FILE2