]> git.saurik.com Git - apple/objc4.git/blob - test/load-order.m
objc4-756.2.tar.gz
[apple/objc4.git] / test / load-order.m
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
10 #include "test.h"
11
12 extern int state1, state2, state3;
13
14 int main()
15 {
16 testassert(state1 == 1 && state2 == 2 && state3 == 3);
17 succeed(__FILE__);
18 }