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