]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-in-init.dtest/main.c
3 // BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/libfoo.dylib -install_name $RUN_DIR/libfoo.dylib
4 // BUILD: $CC main.c -o $BUILD_DIR/dlopen-in-init.exe $BUILD_DIR/libfoo.dylib
6 // RUN: ./dlopen-in-init.exe
13 __attribute__((constructor
))
22 printf("[BEGIN] dlopen-in-init\n");
24 // The test is for libdyld.dylib to not crash when libfoo.dylib dlopen() stuff in its initializer
26 printf("[PASS] dlopen-in-init\n");