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