Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / objc / execute / load.m
blobfad662384d6cb1a71e9104a7ce7e7e7b1b2a921b
1 /* Contributed by Nicola Pero - Wed Mar  7 17:55:04 CET 2001 */
2 #include <objc/objc.h>
4 /* Test that +load is automatically called before main is run */
6 static int static_variable = 0;
8 @interface TestClass
10   Class isa;
12 + (void) load;
13 @end
15 @implementation TestClass
16 + (void) load
18   static_variable = 1;
20 @end
22 int main (void)
24   if (static_variable != 1)
25     {
26       abort ();
27     }
29   return 0;