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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc/] [execute/] [class-2.m] - Blame information for rev 702

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 702 jeremybenn
/* Contributed by Nicola Pero - Tue Mar  6 23:05:53 CET 2001 */
2
 
3
#include <objc/objc.h>
4
 
5
/* Tests creating a root class and a subclass */
6
 
7
@interface RootClass
8
{
9
  Class isa;
10
}
11
@end
12
 
13
@implementation RootClass
14
@end
15
 
16
@interface SubClass : RootClass
17
@end
18
 
19
@implementation SubClass
20
@end
21
 
22
#include "class-tests-1.h"
23
 
24
int main (void)
25
{
26
  test_class_with_superclass ("SubClass", "RootClass");
27
 
28
  return 0;
29
}

powered by: WebSVN 2.1.0

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