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