1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
3 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
5 /* Test @synthesize with bitfield instance variables. */
9 #include <objc/runtime.h>
11 @interface MyRootClass
21 @property (nonatomic) int countA;
22 @property (nonatomic) int countB;
23 @property (nonatomic) int countC;
26 @implementation MyRootClass
27 + (id) initialize { return self; }
28 + (id) alloc { return class_createInstance (self, 0); }
29 - (id) init { return self; }
37 MyRootClass *object = [[MyRootClass alloc] init];
43 if (object.countA != 1)
46 if (object.countB != 3)
49 if (object.countC != 4)