]>
Commit | Line | Data |
---|---|---|
13ba007e A |
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 | ||
13 | #if __clang__ | |
14 | #pragma clang diagnostic push | |
15 | #pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation" | |
16 | #endif | |
17 | ||
18 | @implementation Super (cat3) | |
19 | +(void) method { | |
20 | state = 3; | |
21 | } | |
22 | +(void) method3 { | |
23 | state = 3; | |
24 | } | |
25 | +(void) load { | |
26 | testassert(state == 2); | |
27 | state = 3; | |
28 | } | |
29 | @end | |
30 | ||
31 | #if __clang__ | |
32 | #pragma clang diagnostic pop | |
33 | #endif |