]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/lto-symbol-section-move/foo.c
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lto-symbol-section-move / foo.c
1 extern void* otherget();
2 extern int main();
3 extern const char* version();
4 extern void* mainget();
5
6 extern int def;
7 extern int ghi;
8 extern int com;
9
10 double getpi() { return 3.1415926535; }
11
12 void bar()
13 {
14 }
15
16
17
18 extern void* __dso_handle;
19 void* x = &__dso_handle;
20
21 int abc = 10;
22
23
24 int com3;
25 int com4;
26 int com5;
27
28 extern void* foo();
29
30 void* all[] = { &main, &version, &mainget, &getpi, &otherget,
31 &bar, &foo, &x, &abc, &def, &ghi, &com, &com3, &com4, &com5 };
32
33
34 void* foo()
35 {
36 return all;
37 }
38