]> git.saurik.com Git - apple/objc4.git/blobdiff - test/load-order1.m
objc4-437.tar.gz
[apple/objc4.git] / test / load-order1.m
diff --git a/test/load-order1.m b/test/load-order1.m
new file mode 100644 (file)
index 0000000..54fe530
--- /dev/null
@@ -0,0 +1,14 @@
+#include "test.h"
+
+extern int state2, state3;
+
+int state1 = 0;
+
+@interface One @end
+@implementation One
++(void)load 
+{ 
+    testassert(state2 == 2  &&  state3 == 3);
+    state1 = 1;
+}
+@end