2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / objc / execute / class-2.m
blob350a583e9b5bdf6c266a1ef4738fe48645db93cb
1 /* Contributed by Nicola Pero - Tue Mar  6 23:05:53 CET 2001 */
2 #include <objc/objc.h>
3 #include <objc/objc-api.h>
5 #include "next_mapping.h"
7 /* Tests creating a root class and a subclass */
9 @interface RootClass
11   Class isa;
13 @end
15 @implementation RootClass
16 @end
18 @interface SubClass : RootClass
19 @end
21 @implementation SubClass
22 @end
24 #include "class-tests-1.h"
26 int main (void)
28   test_class_with_superclass ("SubClass", "RootClass");
30   return 0;