gcc/testsuite/objc.dg/gnu-runtime-1.m
raw| 1 | /* Test that compiling for the GNU runtime works (regardless of |
| 2 | the system runtime used). */ |
| 3 | /* Author: Ziemowit Laski <[email protected]> */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */ |
| 6 | |
| 7 | #include "../objc-obj-c++-shared/TestsuiteObject.h" |
| 8 | |
| 9 | @interface FooBar: TestsuiteObject |
| 10 | - (void)boo; |
| 11 | @end |
| 12 | |
| 13 | int main () |
| 14 | { |
| 15 | id fooBarInst = [[FooBar alloc] init]; |
| 16 | [fooBarInst boo]; |
| 17 | return 0; |
| 18 | } |
| 19 |