Fix Ada runtime library breakage on Solaris
[official-gcc.git] / gcc / testsuite / objc.dg / fsyntax-only.m
blob70ea8ace43de0816b6be7e21294af15de798d975
1 /* Test -fsyntax-only compiler option  */
2 /* { dg-do compile } */
3 /* { dg-options "-fsyntax-only" } */
5 #if defined(__has_attribute) && __has_attribute(objc_root_class)
6 __attribute__((objc_root_class))
7 #endif
8 @interface foo
9 -(void) my_method:(int) i with:(int) j;
10 @end
12 @implementation foo
13 -(void) my_method:(int) i with:(int) j { }
14 @end