Merged r157653 through r157895 into branch.
[official-gcc.git] / gcc / testsuite / obj-c++.dg / gnu-runtime-1.mm
blobc7e3bcc3a22e209f27a5857c4e8dae081e4446b9
1 /* Test that compiling for the GNU runtime works (regardless of
2    the system runtime used).  */
3 /* Author: Ziemowit Laski <zlaski@apple.com>  */
4 /* { dg-do compile } */
5 /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
7 #include <objc/Object.h>
9 @interface FooBar: Object
10 - (void)boo;
11 @end
13 int main ()
15   id fooBarInst = [[FooBar alloc] init];
16   [fooBarInst boo];
17   return 0;