]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/symbol-section-move/main.c
ld64-241.9.tar.gz
[apple/ld64.git] / unit-tests / test-cases / symbol-section-move / main.c
1
2 void mm()
3 {
4 }
5
6 static void s1() {
7 mm();
8 }
9
10 static void s2() {
11 mm();
12 }
13
14 int main()
15 {
16 s1();
17 s2();
18 return 0;
19 }
20
21 const char* version() { return "1.0"; }
22
23 static int mylocal()
24 {
25 return 0;
26 }
27
28 void* mainget() { return mylocal; }
29
30 double getpi() { return 3.1415926535; }
31
32 void foo()
33 {
34 }
35
36 void bar()
37 {
38 }
39
40 extern void* __dso_handle;
41 void* x = &__dso_handle;
42
43 int abc = 10;
44
45 int def = 20;
46
47 int ghi = 30;
48
49 int com;
50
51 int com3;
52 int com4;
53 int com5;
54