URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Check if the objc_symtab descriptor is being laid out correctly. */
|
/* Check if the objc_symtab descriptor is being laid out correctly. */
|
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
/* { dg-options "-fnext-runtime" } */
|
/* { dg-options "-fnext-runtime" } */
|
/* { dg-do compile { target *-*-darwin* } } */
|
/* { dg-do compile { target *-*-darwin* } } */
|
|
|
#include <objc/Object.h>
|
#include <objc/Object.h>
|
|
|
@interface Base: Object
|
@interface Base: Object
|
- (void)setValues;
|
- (void)setValues;
|
@end
|
@end
|
|
|
@interface Derived: Base
|
@interface Derived: Base
|
- (void)checkValues;
|
- (void)checkValues;
|
@end
|
@end
|
|
|
@implementation Base
|
@implementation Base
|
-(void)setValues { }
|
-(void)setValues { }
|
@end
|
@end
|
|
|
@implementation Derived
|
@implementation Derived
|
-(void)checkValues { }
|
-(void)checkValues { }
|
@end
|
@end
|
|
|
/* { 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" } } */
|
/* { 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" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.