URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Contributed by Nicola Pero - Tue Mar 6 23:05:53 CET 2001 */
|
/* Contributed by Nicola Pero - Tue Mar 6 23:05:53 CET 2001 */
|
#include <objc/objc.h>
|
#include <objc/objc.h>
|
#include <objc/objc-api.h>
|
#include <objc/objc-api.h>
|
|
|
#include "next_mapping.h"
|
#include "next_mapping.h"
|
|
|
/* Tests creating a root class and a subclass */
|
/* Tests creating a root class and a subclass */
|
|
|
@interface RootClass
|
@interface RootClass
|
{
|
{
|
Class isa;
|
Class isa;
|
}
|
}
|
@end
|
@end
|
|
|
@implementation RootClass
|
@implementation RootClass
|
@end
|
@end
|
|
|
@interface SubClass : RootClass
|
@interface SubClass : RootClass
|
@end
|
@end
|
|
|
@implementation SubClass
|
@implementation SubClass
|
@end
|
@end
|
|
|
#include "class-tests-1.h"
|
#include "class-tests-1.h"
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
test_class_with_superclass ("SubClass", "RootClass");
|
test_class_with_superclass ("SubClass", "RootClass");
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.