OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [class-2.m] - Rev 307

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

/* Contributed by Nicola Pero - Tue Mar  6 23:05:53 CET 2001 */
 
#include "../../objc-obj-c++-shared/next-mapping.h"
#include <objc/objc.h>
#include <objc/objc-api.h>
 
/* Tests creating a root class and a subclass */
 
@interface RootClass
{
  Class isa;
}
@end
 
@implementation RootClass
@end
 
@interface SubClass : RootClass
@end
 
@implementation SubClass
@end
 
#include "class-tests-1.h"
 
int main (void)
{
  test_class_with_superclass ("SubClass", "RootClass");
 
  return 0;
}
 

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

powered by: WebSVN 2.1.0

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