2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / objc / execute / np-2.m
blobaf973cf9d942d195c38da09f61cc7d1e7151d80c
1 /*
2  * Contributed by Nicola Pero <n.pero@mi.flashnet.it>
3  * Tue Sep 19 4:34AM
4  */
6 #include <objc/objc.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 + initialize { return self; }
21 @end
23 int main (void)
25   [MyObject methodA];
27   return 0;