Debian Codegraph @

gcc/testsuite/objc/execute/np-2.m

raw
1 /*
2 * Contributed by Nicola Pero <[email protected]>
3 * Tue Sep 19 4:34AM
4 */
5
6 #include <objc/objc.h>
7
8 @protocol MyProtocol
9 + (oneway void) methodA;
10 @end
11
12 @interface MyObject <MyProtocol>
13 @end
14
15 @implementation MyObject
16 + (oneway void) methodA
17 {
18 printf ("methodA\n");
19 }
20 + initialize { return self; }
21 @end
22
23 int main (void)
24 {
25 [MyObject methodA];
26
27 return 0;
28 }
29
30