Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / objc / execute / np-2.m
blob85aa203ca5ceaa87f699d19fb0bc8cc77e62a98d
1 /*
2  * Contributed by Nicola Pero <n.pero@mi.flashnet.it>
3  * Tue Sep 19 4:34AM
4  */
5 #include <objc/objc.h>
6 #include <objc/Protocol.h>
8 @protocol MyProtocol
9 + (oneway void) methodA;
10 @end
12 @interface MyObject <MyProtocol>
13 @end
15 @implementation MyObject
16 + (oneway void) methodA
18   printf ("methodA\n");
20 #ifdef __NEXT_RUNTIME__                                   
21 + initialize { return self; }
22 #endif
23 @end
25 int main (void)
27   [MyObject methodA];
29    exit (0);