aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/syntax-error-7.mm
blob: c406d8fe769fdc134db78cc98360b8471642c0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
// { dg-additional-options "-Wno-objc-root-class" }

@interface Foo
-(void) someMethod;
@end

@implementation Foo
-(void)
-(void) someMethod /* { dg-error "expected before .-." } */
{
}
@end /* { dg-warning "incomplete implementation of class" } */
/* { dg-warning "method definition for ..someMethod. not found" "" { target *-*-* } .-1 } */