]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlsym-in-interposed-malloc.dtest/main.c
70adcf0bb272243c936a1d49935e57f99a050113
1 // BUILD: $CC main.c -o $BUILD_DIR/dlsym-in-interposed-malloc.exe
2 // BUILD: $DYLD_ENV_VARS_ENABLE $BUILD_DIR/dlsym-in-interposed-malloc.exe
3 // BUILD: $CC interposer.c -dynamiclib -o $BUILD_DIR/libmyalloc.dylib -install_name libmyalloc.dylib
5 // RUN: DYLD_INSERT_LIBRARIES=libmyalloc.dylib ./dlsym-in-interposed-malloc.exe
14 printf("[BEGIN] dlsym-in-interposed-malloc\n");
16 // malloc should have been called when dyld3's libdyld was initialized, but
17 // call it one more time anyway just to make sure its working
21 //printf("%p %p %p %p\n", p1, p2, p3, p4);
22 printf("[PASS] dlsym-in-interposed-malloc\n");