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 '-freplace-objc-classes' option causes the
|
/* Check if the '-freplace-objc-classes' option causes the
|
__OBJC,__image_info section to be emitted. This is only
|
__OBJC,__image_info section to be emitted. This is only
|
usable on MacOS X 10.3 and later. */
|
usable on MacOS X 10.3 and later. */
|
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
/* { dg-options "-freplace-objc-classes" } */
|
/* { dg-options "-freplace-objc-classes" } */
|
/* { dg-do compile { target *-*-darwin* } } */
|
/* { dg-do compile { target *-*-darwin* } } */
|
|
|
#ifndef __NEXT_RUNTIME__
|
#ifndef __NEXT_RUNTIME__
|
#error Feature not currently supported by the GNU runtime
|
#error Feature not currently supported by the GNU runtime
|
#endif
|
#endif
|
|
|
#include <objc/objc.h>
|
#include <objc/objc.h>
|
#include <objc/Object.h>
|
#include <objc/Object.h>
|
|
|
extern void abort(void);
|
extern void abort(void);
|
|
|
#define CHECK_IF(expr) if(!(expr)) abort();
|
#define CHECK_IF(expr) if(!(expr)) abort();
|
|
|
@interface Base: Object {
|
@interface Base: Object {
|
@public
|
@public
|
int a;
|
int a;
|
float b;
|
float b;
|
char c;
|
char c;
|
}
|
}
|
- init;
|
- init;
|
@end
|
@end
|
|
|
@implementation Base
|
@implementation Base
|
- init {
|
- init {
|
[super init];
|
[super init];
|
a = 123;
|
a = 123;
|
b = 1.23;
|
b = 1.23;
|
c = 'c';
|
c = 'c';
|
return self;
|
return self;
|
}
|
}
|
@end
|
@end
|
|
|
/* { dg-final { scan-assembler "\t.section __OBJC, __image_info.*\n\t.align.*\nL_OBJC_IMAGE_INFO.*:\n\t.long\t0\n\t.long\t1" } } */
|
/* { dg-final { scan-assembler "\t.section __OBJC, __image_info.*\n\t.align.*\nL_OBJC_IMAGE_INFO.*:\n\t.long\t0\n\t.long\t1" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.