summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/fsyntax-only.m
blob: 54a879e22c5b54bf4bf2985f4bd3176f5398c32b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test -fsyntax-only compiler option  */
/* { dg-do compile } */
/* { dg-options "-fsyntax-only" } */

@interface foo
-(void) my_method:(int) i with:(int) j;
@end

@implementation foo
-(void) my_method:(int) i with:(int) j { }
@end