]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dyld_get_sdk_version.dtest/main.c
2 // BUILD: $CC main.c -o $BUILD_DIR/sdk-check.exe
4 // RUN: ./sdk-check.exe
8 #include <mach-o/dyld_priv.h>
10 extern struct mach_header __dso_handle
;
14 printf("[BEGIN] dyld_get_sdk_version\n");
17 if ( dyld_get_sdk_version(&__dso_handle
) == 0 ) {
18 printf("[FAIL] dyld_get_sdk_version: expected SDK\n");
23 const char* text
= "bad text";
24 if ( dyld_get_sdk_version((struct mach_header
*)text
) != 0 ) {
25 printf("[FAIL] dyld_get_sdk_version: expected failure\n");
29 printf("[PASS] dyld_get_sdk_version\n");