]>
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
12 #include "test_support.h"
14 __attribute__((constructor
))
21 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
22 // The test is for libdyld.dylib to not crash when libfoo.dylib dlopen() stuff in its initializer