]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dylib-static-link.dtest/present.c
3 // BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/libfoo.dylib -install_name libfoo.dylib
4 // BUILD: $CC present.c $BUILD_DIR/libfoo.dylib -o $BUILD_DIR/dylib-static-present.exe
5 // BUILD: $CC foo.c -dynamiclib -o $TEMP_DIR/libfoo2.dylib -install_name libfoomissing.dylib
6 // BUILD: $CC missing.c $TEMP_DIR/libfoo2.dylib -o $BUILD_DIR/dylib-static-missing.exe
8 // RUN: ./dylib-static-present.exe
9 // RUN: NOCR_TEST_NAME="dylib-static-link missing" $REQUIRE_CRASH ./dylib-static-missing.exe
19 printf("[BEGIN] dylib-static-link present\n");
21 printf("[PASS] dylib-static-link present\n");
23 printf("[FAIL] dylib-static-link present, wrong value\n");