load-order.m 568 B

123456789101112131415161718
  1. /*
  2. TEST_BUILD
  3. $C{COMPILE} $DIR/load-order3.m -o load-order3.dylib -dynamiclib
  4. $C{COMPILE} $DIR/load-order2.m -o load-order2.dylib -x none load-order3.dylib -dynamiclib
  5. $C{COMPILE} $DIR/load-order1.m -o load-order1.dylib -x none load-order3.dylib load-order2.dylib -dynamiclib
  6. $C{COMPILE} $DIR/load-order.m -o load-order.exe -x none load-order3.dylib load-order2.dylib load-order1.dylib
  7. END
  8. */
  9. #include "test.h"
  10. extern int state1, state2, state3;
  11. int main()
  12. {
  13. testassert(state1 == 1 && state2 == 2 && state3 == 3);
  14. succeed(__FILE__);
  15. }