summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/syntax-error-3.mm
blob: 34f914bad28e97261b739c31469548f31d67596a (plain)
1
2
3
4
5
6
7
8
9
10
/* Yet another stray infinite loop... */
/* { dg-do compile } */

@interface Foo
{
  int x;
  int y;
}
- (int) foo ; { /* { dg-error "stray .\{. between Objective\\-C\\+\\+ methods" } */
@end