]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/weak_import/main.c
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / weak_import / main.c
1 #include <stddef.h>
2
3 #include "foo.h"
4
5
6 int* pdata5 = &data5;
7 int* pdata6 = &data6;
8
9 void* pf3;
10
11 int main (void)
12 {
13 // make non-lazy reference to func3 and func4
14 pf3 = &func3;
15 if ( &func4 == NULL ) {
16 // make lazy reference to func1 and func2
17 func1();
18 func2();
19 }
20
21 return data1 + data2 + data3 + data4;
22 }
23