aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/next-runtime-1.m
blob: 2ce798bc94f2b029970d66d76d1de9965f70af66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Test that the correct version number (6) is set in the module descriptor
   when compiling for the NeXT runtime ABI=0 - and that the MODULE descriptor
   is not emitted at all for ABI 2.  */
/* modified from a testcase added by: Ziemowit Laski <zlaski@apple.com>  */

/* { dg-do compile { target *-*-darwin* } } */
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
/* { dg-skip-if "" { *-*-* } { "-fobjc-abi-version=1" } { "" } } */
/* { dg-options "-fobjc-abi-version=0" { target { *-*-darwin* && { ! lp64 } } } } */
/* { dg-additional-options "-Wno-objc-root-class" } */

@interface FooBar
- (void)boo;
@end

@implementation FooBar
- (void)boo { }
@end

/* { dg-final { scan-assembler "L_OBJC_Module:\n\[ \t\]*\.long\t6\n" { target { *-*-darwin* && { ! lp64 } } } } } */
/* { dg-final { scan-assembler-not "L_OBJC_Module" { target { *-*-darwin* && {  lp64 } } } } } */