OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / obj-c++.dg / syntax-error-2.mm
1 /* Recover gracefully from a syntax error.  */
2
3 @implementation Whatever  /* { dg-warning "cannot find interface declaration for .Whatever." } */
4
5 - (void) function
6 {
7         if( 1 )
8         {
9         else   /* { dg-error "expected .\}. before .else." } */
10         {
11         }
12 }
13
14 - (void) another {}
15
16 @end