]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/weak_dylib/main.c
ld64-84.1.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / weak_dylib / main.c
1
2 #include "foo.h"
3 #include "bar.h"
4
5 void* p;
6
7 int main (void)
8 {
9 // non-lazy reference to foo2
10 p = &foo2;
11 // lazy reference to foo4
12 foo4();
13
14 // non-lazy reference to bar2
15 p = &bar2;
16 // lazy reference to bar4 and bar1
17 bar4();
18 bar1();
19
20 return 0;
21 }
22