]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/_dyld_shared_cache_is_locally_built.dtest/main.c
8672bb83e4fb656df2c78c77afb4f3f6a9a2784e
[apple/dyld.git] / testing / test-cases / _dyld_shared_cache_is_locally_built.dtest / main.c
1
2 // BUILD: $CC main.c -o $BUILD_DIR/_dyld_shared_cache_is_locally_built.exe
3
4 // RUN: ./_dyld_shared_cache_is_locally_built.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] _dyld_shared_cache_is_locally_built\n");
16
17 // We can't reliably test the result of this function, but it shouldn't crash
18 _dyld_shared_cache_is_locally_built();
19
20 printf("[PASS] _dyld_shared_cache_is_locally_built\n");
21
22 return 0;
23 }
24