]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/no-shared-cache.dtest/main.c
3 // BUILD: $CC main.c -framework AppKit -o $BUILD_DIR/no_shared_cache.exe
5 // RUN: DYLD_SHARED_REGION=avoid ./no_shared_cache.exe
10 #include <mach-o/dyld_priv.h>
13 #include "test_support.h"
15 // This program links with AppKit which in dyld3 mode stress tests building closures when there is no dyld shared cache
17 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
20 const void* cacheStart
= _dyld_get_shared_cache_range(&cacheLen
);
22 if ( cacheStart
!= NULL
) {
23 FAIL("_dyld_get_shared_cache_range() returned %p even though we are not using a dyld cache", cacheStart
);