OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [symtab-1.m] - Blame information for rev 645

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

Line No. Rev Author Line
1 149 jeremybenn
/* Check if the objc_symtab descriptor is being laid out correctly.  */
2
/* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
3
/* { dg-options "-fnext-runtime" } */
4
/* { dg-do compile { target *-*-darwin* } } */
5
 
6
#include <objc/Object.h>
7
 
8
@interface Base: Object
9
- (void)setValues;
10
@end
11
 
12
@interface Derived: Base
13
- (void)checkValues;
14
@end
15
 
16
@implementation Base
17
-(void)setValues { }
18
@end
19
 
20
@implementation Derived
21
-(void)checkValues { }
22
@end
23
 
24
/* { dg-final { scan-assembler "L_OBJC_SYMBOLS.*:\n\t.long\t0\n\t.long\t0\n\t.short\t2\n\t.short\t0\n\t.long\tL_OBJC_CLASS_Derived.*\n\t.long\tL_OBJC_CLASS_Base.*\n" } } */

powered by: WebSVN 2.1.0

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