Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / objc.dg / next-runtime-1.m
blobdb14897fe8d6c38325c332f869ad3ef6fe85bf98
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>  */
5 /* { dg-do compile { target *-*-darwin* } } */
6 /* { dg-options "-fnext-runtime" } */
8 #include <objc/Object.h>
10 @interface FooBar: Object
11 - (void)boo;
12 @end
14 @implementation FooBar
15 - (void)boo { }
16 @end
18 /* { dg-final { scan-assembler "L_OBJC_MODULES:\n\[ \t\]*\.long\t6\n" } } */