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