| 1 |
/* Test that the correct version number (6) is set in the module descriptor |
| 2 |
when compiling for the NeXT runtime ABI=0 - and that the MODULE descriptor |
| 3 |
is not emitted at all for ABI 2. */ |
| 4 |
/* modified from a testcase added by: Ziemowit Laski <[email protected]> */ |
| 5 |
|
| 6 |
/* { dg-do compile { target *-*-darwin* } } */ |
| 7 |
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */ |
| 8 |
/* { dg-skip-if "" { *-*-* } { "-fobjc-abi-version=1" } { "" } } */ |
| 9 |
/* { dg-options "-fobjc-abi-version=0" { target { *-*-darwin* && { ! lp64 } } } } */ |
| 10 |
/* { dg-additional-options "-Wno-objc-root-class" } */ |
| 11 |
|
| 12 |
@interface FooBar |
| 13 |
- (void)boo; |
| 14 |
@end |
| 15 |
|
| 16 |
@implementation FooBar |
| 17 |
- (void)boo { } |
| 18 |
@end |
| 19 |
|
| 20 |
/* { dg-final { scan-assembler "L_OBJC_Module:\n\[ \t\]*\.long\t6\n" { target { *-*-darwin* && { ! lp64 } } } } } */ |
| 21 |
/* { dg-final { scan-assembler-not "L_OBJC_Module" { target { *-*-darwin* && { lp64 } } } } } */ |