ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/objc.dg/fsyntax-only.m

15 lines
338 B
Objective-C

/* Test -fsyntax-only compiler option */
/* { dg-do compile } */
/* { dg-options "-fsyntax-only" } */
#if defined(__has_attribute) && __has_attribute(objc_root_class)
__attribute__((objc_root_class))
#endif
@interface foo
-(void) my_method:(int) i with:(int) j;
@end
@implementation foo
-(void) my_method:(int) i with:(int) j { }
@end