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

@interface t
{
}
- (void)go;
@end
@implementation t
- (void)go
{
        }
} /* { dg-error "stray .\}. between Objective\\-C\\+\\+ methods" } */
@end