main.c   [plain text]



// BUILD:  $CC main.c            -o $BUILD_DIR/_dyld_shared_cache_is_locally_built.exe

// RUN:  ./_dyld_shared_cache_is_locally_built.exe

#include <stdio.h>
#include <stdlib.h>
#include <string.h> 
#include <mach-o/dyld_priv.h>
#include <dlfcn.h>

#include "test_support.h"

int main(int argc, const char* argv[], const char* envp[], const char* apple[]) {
    // We can't reliably test the result of this function, but it shouldn't crash
    _dyld_shared_cache_is_locally_built();

    PASS("SUCCESS");
}