load-order2.m 180 B

123456789101112131415
  1. #include "test.h"
  2. extern int state3;
  3. int state2 = 0;
  4. OBJC_ROOT_CLASS
  5. @interface Two @end
  6. @implementation Two
  7. +(void)load
  8. {
  9. testassert(state3 == 3);
  10. state2 = 2;
  11. }
  12. @end