gcc/testsuite/objc/execute/np-1.m
raw| 1 | /* |
| 2 | * Contributed by Nicola Pero <[email protected]> |
| 3 | * Tue Sep 19 4:29AM |
| 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 | } |
| 19 | @end |
| 20 | |
| 21 | int main (void) |
| 22 | { |
| 23 | MyObject *object = nil; |
| 24 | |
| 25 | [object methodA]; |
| 26 | |
| 27 | return 0; |
| 28 | } |
| 29 | |
| 30 |