blob: dbdc0b9f2e382d749b9504b94c2bf66fd4a14266 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* 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 minimal subclass tree */
@interface RootClass
{
Class isa;
}
@end
@implementation RootClass
@end
@interface SubClassA : RootClass
@end
@implementation SubClassA
@end
@interface SubClassB : RootClass
@end
@implementation SubClassB
@end
@interface SubSubClass : SubClassA
@end
@implementation SubSubClass
@end
#include "class-tests-1.h"
int main (void)
{
test_class_with_superclass ("SubClassA", "RootClass");
test_class_with_superclass ("SubClassB", "RootClass");
test_class_with_superclass ("SubSubClass", "SubClassA");
return 0;
}
|