1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
3 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
5 /* Test the property syntax with non-synthesized setter/getter
6 and with standard names. */
10 #include <objc/runtime.h>
12 @interface MyRootClass
17 @property (nonatomic) int a;
23 @implementation MyRootClass
24 + (id) initialize { return self; }
25 + (id) alloc { return class_createInstance (self, 0); }
26 - (id) init { return self; }
32 - (void) setA: (int)value
40 MyRootClass *object = [[MyRootClass alloc] init];