1 // REQUIRES : system-darwin
2 // RUN: dsymutil -oso-prepend-path %p/.. -dump-debug-map %p/../Inputs/global_downgraded_to_static.x86_64 2>&1 | FileCheck %s
5 // clang -g -c -DFILE1 global_downgraded_to_static.c -o 1.o
6 // clang -g -c -DFILE2 global_downgraded_to_static.c -o 2.o
7 // ld -r -exported_symbol _foo 1.o -o 1.r.o
8 // clang 1.r.o 2.o -o global_downgraded_to_static.x86_64
11 int global_to_become_static
= 42;
12 // CHECK: sym: _global_to_become_static,
13 // CHECK-SAME: binAddr: 0x0000000100001000
15 return global_to_become_static
;
23 #error Define FILE1 or FILE2