]> git.saurik.com Git - apple/ld64.git/blame_incremental - unit-tests/test-cases/lazy-dylib/main.c
ld64-241.9.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lazy-dylib / main.c
... / ...
CommitLineData
1#include <stdio.h>
2#include <stdlib.h>
3
4
5extern int foo();
6extern int bar();
7
8int 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}