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 synthesized setter/getter
6 and with a non-standard name for the getter and setter. */
10 #include <objc/runtime.h>
12 @interface MyRootClass
17 /* Use the simplest synthesized accessor (assign, nonatomic) as we are
18 not testing the synthesized accessors in this test, just the
20 @property (getter = giveMeA, setter = writeA:, nonatomic) int a;
26 @implementation MyRootClass
27 + (id) initialize { return self; }
28 + (id) alloc { return class_createInstance (self, 0); }
29 - (id) init { return self; }
35 MyRootClass *object = [[MyRootClass alloc] init];