gcc/testsuite/objc.dg/fsyntax-only.m
raw| 1 | /* Test -fsyntax-only compiler option */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fsyntax-only" } */ |
| 4 | |
| 5 | #if defined(__has_attribute) && __has_attribute(objc_root_class) |
| 6 | __attribute__((objc_root_class)) |
| 7 | #endif |
| 8 | @interface foo |
| 9 | -(void) my_method:(int) i with:(int) j; |
| 10 | @end |
| 11 | |
| 12 | @implementation foo |
| 13 | -(void) my_method:(int) i with:(int) j { } |
| 14 | @end |