projects
/
apple
/
dyld.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
dyld-851.27.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