]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-RTLD_NOLOAD.dtest/init-b.c
7 #include "test_support.h"
9 bool doneInitB
= false;
13 __attribute__((constructor
))
14 void initB(int argc
, const char* argv
[], const char* envp
[], const char* apple
[])
18 // "upward" link to libInitA.dylib
19 void* handle
= dlopen(RUN_DIR
"/libInitA.dylib", RTLD_NOLOAD
);
20 if ( handle
== NULL
) {
21 FAIL("dlopen(\"libInitA.dylib\", RTLD_NOLOAD) failed but it should have worked: %s", dlerror());