]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/shared_cache_optimized.dtest/main.c
dyld-851.27.tar.gz
[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 #include "test_support.h"
13
14 int main(int argc, const char* argv[], const char* envp[], const char* apple[]) {
15 // tests run on internal installs which use un-optimzed dyld cache
16 if ( _dyld_shared_cache_optimized() )
17 FAIL("unexpectedly returned true");
18 else
19 PASS("Success");
20 }
21