OSDN Git Service

In libobjc/:
[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-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
7
8 #include "../objc-obj-c++-shared/Object1.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" { target { *-*-darwin* && { ! lp64 } } } } } */
19 /* { dg-final { scan-assembler "L_OBJC_MODULES:\n\[ \t\]*\.quad\t6\n" { target { *-*-darwin* && {  lp64 } } } } } */