[ARM] Rewrite how VCMP are lowered, using a single node
[llvm-core.git] / test / tools / dsymutil / X86 / global_downgraded_to_static.c
blob35c324703fd67e382f819b2b0da83e96d9f1ed24
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
3 //
4 // To build:
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
10 #if defined(FILE1)
11 int global_to_become_static = 42;
12 // CHECK: sym: _global_to_become_static,
13 // CHECK-SAME: binAddr: 0x0000000100001000
14 int foo() {
15 return global_to_become_static;
17 #elif defined(FILE2)
18 int foo(void);
19 int main() {
20 return foo();
22 #else
23 #error Define FILE1 or FILE2
24 #endif