1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
4 /* Test that properties are found even if implemented in superclasses. */
8 #include <objc/runtime.h>
10 @interface MyRootClass
15 /* Use the simplest synthesized accessor (assign, nonatomic) as we are
16 not testing the synthesized accessors in this test, just the
18 @property (nonatomic) int a;
24 @implementation MyRootClass
25 + (id) initialize { return self; }
26 + (id) alloc { return class_createInstance (self, 0); }
27 - (id) init { return self; }
31 @interface MySubClass : MyRootClass
34 @implementation MySubClass
39 MySubClass *object = [[MySubClass alloc] init];