2 #include "imageorder.h"
7 static void c1(void) __attribute__((constructor));
10 testassert(state == 1); // +load before C/C++
11 testassert(cstate == 0);
17 #pragma clang diagnostic push
18 #pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"
21 @implementation Super (cat1)
23 fail("+[Super(cat1) method] not replaced!");
29 testassert(state == 0);
35 #pragma clang diagnostic pop
40 +(void) initialize { }
42 fail("+[Super method] not replaced!");
48 testassert(state == -1);