]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/shared_cache_optimized.dtest/main.c
df44b5e6d2cd9d2b6760d0f48c97b87ebfd79745
[apple/dyld.git] / testing / test-cases / shared_cache_optimized.dtest / main.c
1
2 // BUILD: $CC main.c -o $BUILD_DIR/shared_cache_optimized.exe
3
4 // RUN: ./shared_cache_optimized.exe
5
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <string.h>
9 #include <mach-o/dyld_priv.h>
10 #include <dlfcn.h>
11
12
13 int main()
14 {
15 printf("[BEGIN] shared_cache_optimized\n");
16
17 // tests run on internal installs which use un-optimzed dyld cache
18 if ( _dyld_shared_cache_optimized() )
19 printf("[FAIL] shared_cache_optimized unexpectedly returned true\n");
20 else
21 printf("[PASS] shared_cache_optimized\n");
22
23 return 0;
24 }
25