1 /* Contributed by Nicola Pero - Tue Mar 6 23:05:53 CET 2001 */
5 /* Tests creating a root class and a subclass with an ivar and
14 @implementation RootClass
15 + initialize { return self; }
18 @interface SubClass : RootClass
22 - (void) setState: (int)number;
26 @implementation SubClass
27 - (void) setState: (int)number
37 #include "class-tests-1.h"
38 #define TYPE_OF_OBJECT_WITH_ACCESSOR_METHOD SubClass *
39 #include "class-tests-2.h"
45 test_class_with_superclass ("SubClass", "RootClass");
46 test_that_class_has_instance_method ("SubClass", @selector (setState:));
47 test_that_class_has_instance_method ("SubClass", @selector (state));
49 object = class_createInstance (objc_getClass ("SubClass"), 0);
50 test_accessor_method (object, 0, 1, 1, -3, -3);