OSDN Git Service

2005-06-28 Thomas Koenig <Thomas.Koenig@online.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / next-runtime-1.m
1 /* Test that the correct version number (6) is set in the module descriptor
2    when compiling for the NeXT runtime.  */
3 /* Author: Ziemowit Laski <zlaski@apple.com>  */
4
5 /* { dg-do compile { target *-*-darwin* } } */
6 /* { dg-options "-fnext-runtime" } */
7
8 #include <objc/Object.h>
9
10 @interface FooBar: Object
11 - (void)boo;
12 @end
13
14 @implementation FooBar
15 - (void)boo { }
16 @end
17
18 /* { dg-final { scan-assembler "L_OBJC_MODULES:\n\[ \t\]*\.long\t6\n" } } */