Merged r157653 through r157895 into branch.
[official-gcc.git] / gcc / testsuite / objc / execute / np-1.m
blob1cf83ff7fecae85846f4309cf513288187e9d279
1 /*
2  * Contributed by Nicola Pero <n.pero@mi.flashnet.it>
3  * Tue Sep 19 4:29AM
4  */
6 #include "../../objc-obj-c++-shared/Protocol1.h"
7 #include <objc/objc.h>
9 @protocol MyProtocol
10 - (oneway void) methodA;
11 @end
13 @interface MyObject <MyProtocol>
14 @end
16 @implementation MyObject
17 - (oneway void) methodA
20 @end
22 int main (void)
24   MyObject *object = nil;
26   [object methodA];
28    exit (0);