1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
4 /* Test the property syntax with non-synthesized setter/getter
5 and with a non-standard name for the setter. */
9 #include <objc/runtime.h>
11 @interface MyRootClass
16 @property (setter = writeA:) int a;
22 @implementation MyRootClass
23 + (id) initialize { return self; }
24 + (id) alloc { return class_createInstance (self, 0); }
25 - (id) init { return self; }
31 - (void) writeA: (int)value
39 MyRootClass *object = [[MyRootClass alloc] init];