aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc/execute/class-2.m
blob: 88378e1d4a8032c2ea8da930067d61e4c2d38c69 (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
/* Contributed by Nicola Pero - Tue Mar  6 23:05:53 CET 2001 */

#include <objc/objc.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;
}