3 $C{COMPILE} $DIR/load-reentrant.m -o load-reentrant.exe
4 $C{COMPILE} $DIR/load-reentrant2.m -o libload-reentrant2.dylib -bundle -bundle_loader load-reentrant.exe
21 // Re-entrant +load doesn't get to complete until we do
22 void *dlh = dlopen("libload-reentrant2.dylib", RTLD_LAZY);
24 state2_p = (int *)dlsym(dlh, "state2");
26 testassert(*state2_p == 0);
34 testassert(state1 == 1 && state2_p && *state2_p == 2);