]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/re-export-symbol/foo.c
ld64-305.tar.gz
[apple/ld64.git] / unit-tests / test-cases / re-export-symbol / foo.c
1
2 #if USE_MY
3 extern int mybar();
4 #else
5 extern int bar();
6 #endif
7
8 int foo(void)
9 {
10 #if USE_MY
11 return mybar() + 1;
12 #else
13 return bar() + 1;
14 #endif
15 }
16
17 #if USE_MY
18 void* p = &mybar;
19 #else
20 void* p = &bar;
21 #endif