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 atomic, assign synthesized methods. */
9 #include <objc/runtime.h>
11 @interface MyRootClass
18 @property (assign) id b;
24 @implementation MyRootClass
25 + (id) initialize { return self; }
26 + (id) alloc { return class_createInstance (self, 0); }
27 - (id) init { return self; }
34 MyRootClass *object = [[MyRootClass alloc] init];
41 if (object.b != object)