]> git.saurik.com Git - apple/objc4.git/blob - test/imageorder2.m
objc4-437.tar.gz
[apple/objc4.git] / test / imageorder2.m
1 #include "test.h"
2 #include "imageorder.h"
3
4 static void c2(void) __attribute__((constructor));
5 static void c2(void)
6 {
7 testassert(state == 2); // +load before C/C++
8 testassert(cstate == 1);
9 cstate = 2;
10 }
11
12 @implementation Super (cat2)
13 +(void) method {
14 fail("+[Super(cat2) method] not replaced!");
15 }
16 +(void) method2 {
17 state = 2;
18 }
19 +(void) load {
20 testassert(state == 1);
21 state = 2;
22 }
23 @end