dyld-750.5.tar.gz
[apple/dyld.git] / testing / test-cases / _dyld_register_for_bulk_image_loads.dtest / bar.c
1
2 #include <dlfcn.h>
3
4 #include "test_support.h"
5
6 __attribute__((constructor))
7 void bar(int argc, const char* argv[], const char* envp[], const char* apple[]) {
8 void* handle = dlopen(RUN_DIR "/libbaz.dylib", RTLD_FIRST);
9 if ( handle == NULL ) {
10 FAIL("dlopen(\"%s\") failed with: %s", RUN_DIR "/libbaz.dylib", dlerror());
11 }
12 }