summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/syntax-error-2.mm
blob: ba8804a89e28525dec2468724ceec9532e372557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Recover gracefully from a syntax error.  */

@implementation Whatever  /* { dg-warning "cannot find interface declaration for .Whatever." } */

- (void) function
{
	if( 1 )
	{
	else   /* { dg-error "expected .\}. before .else." } */
	{
	}
}

- (void) another {}

@end