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