]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/lazy-dylib/main.c
ld64-84.1.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lazy-dylib / main.c
CommitLineData
2f2f92e4
A
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}