gcc/testsuite/obj-c++.dg/syntax-error-7.mm
raw| 1 | /* { dg-do compile } */ |
| 2 | // { dg-additional-options "-Wno-objc-root-class" } |
| 3 | |
| 4 | @interface Foo |
| 5 | -(void) someMethod; |
| 6 | @end |
| 7 | |
| 8 | @implementation Foo |
| 9 | -(void) |
| 10 | -(void) someMethod /* { dg-error "expected before .-." } */ |
| 11 | { |
| 12 | } |
| 13 | @end /* { dg-warning "incomplete implementation of class" } */ |
| 14 | /* { dg-warning "method definition for ..someMethod. not found" "" { target *-*-* } .-1 } */ |