aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/break-in-ifstmt.m
blob: 6176832ed1c56e847f047a21b50c5821b911707a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-additional-options "-Wno-objc-root-class" } */

@interface foo
- (void) test;
@end

@implementation foo
-(void) test {
  if (1) {
        break;	/* { dg-error "break" } */
        }
}
@end