| 1 | #include <dlfcn.h> |
| 2 | |
| 3 | #include "test.h" |
| 4 | |
| 5 | int main() |
| 6 | { |
| 7 | // dynamically load libz.dylib which imports _malloc from libSystem |
| 8 | dlopen("/usr/lib/libz.dylib", RTLD_LAZY); |
| 9 | |
| 10 | |
| 11 | PASS("read-only-import-shared-cache-dlopen-override"); |
| 12 | return 0; |
| 13 | } |
| 14 | |