OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [next-runtime-1.m] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* 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 <zlaski@apple.com>  */
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
 
11
@interface FooBar
12
- (void)boo;
13
@end
14
 
15
@implementation FooBar
16
- (void)boo { }
17
@end
18
 
19
/* { dg-final { scan-assembler "L_OBJC_Module:\n\[ \t\]*\.long\t6\n" { target { *-*-darwin* && { ! lp64 } } } } } */
20
/* { dg-final { scan-assembler-not "L_OBJC_Module" { target { *-*-darwin* && {  lp64 } } } } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.