]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/weak_dylib/main.c
ld64-85.tar.gz
[apple/ld64.git] / unit-tests / test-cases / weak_dylib / main.c
CommitLineData
2f2f92e4
A
1
2#include "foo.h"
3#include "bar.h"
4
5void* p;
6
7int 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