]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-recurse.dtest/foo.c
dyld-832.7.1.tar.gz
[apple/dyld.git] / testing / test-cases / dlopen-recurse.dtest / foo.c
1 #include <dlfcn.h>
2
3
4 void myinit() __attribute__((constructor));
5
6 void myinit()
7 {
8 // call dlopen() in initializer
9 void* handle = dlopen(RUN_DIR "/libbar.dylib", RTLD_LAZY);
10 }
11
12 int foo()
13 {
14 return 0;
15 }
16