URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Contributed by Nicola Pero - Fri Mar 9 19:39:15 CET 2001 */
|
/* Contributed by Nicola Pero - Fri Mar 9 19:39:15 CET 2001 */
|
#include <objc/objc.h>
|
#include <objc/objc.h>
|
|
|
/* Test redefining self */
|
/* Test redefining self */
|
|
|
@interface TestClass
|
@interface TestClass
|
{
|
{
|
Class isa;
|
Class isa;
|
}
|
}
|
+ (Class) class;
|
+ (Class) class;
|
@end
|
@end
|
|
|
@implementation TestClass
|
@implementation TestClass
|
+ (Class) class
|
+ (Class) class
|
{
|
{
|
self = Nil;
|
self = Nil;
|
|
|
return self;
|
return self;
|
}
|
}
|
#ifdef __NEXT_RUNTIME__
|
#ifdef __NEXT_RUNTIME__
|
+ initialize { return self; }
|
+ initialize { return self; }
|
#endif
|
#endif
|
@end
|
@end
|
|
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
if ([TestClass class] != Nil)
|
if ([TestClass class] != Nil)
|
{
|
{
|
abort ();
|
abort ();
|
}
|
}
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.