]> git.saurik.com Git - apple/ld64.git/blob - ld64-134.9/unit-tests/test-cases/lazy-dylib/main.c
85468541f221856dd28e1e4c6da3a91d9f6cd697
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / lazy-dylib / main.c
1 #include <stdio.h>
2 #include <stdlib.h>
3
4
5 extern int foo();
6 extern int bar();
7
8 int main()
9 {
10 // two regular external function calls
11 void* x = malloc(16);
12 free(x);
13 // two lazy dylib external function calls
14 int result = foo();
15 fprintf(stderr, "foo() returned %d\n", result);
16 bar();
17 return 0;
18 }