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 the 'dot syntax' without a declarated property. */
9 #include <objc/runtime.h>
11 @interface MyRootClass
21 - (void) setCount: (int)value;
23 - (void) setNext: (id)value;
26 @implementation MyRootClass
27 + (id) initialize { return self; }
28 + (id) alloc { return class_createInstance (self, 0); }
29 - (id) init { return self; }
34 - (void) setCount: (int)value
42 - (void) setNext: (id)value
50 MyRootClass *object = [[MyRootClass alloc] init];
53 if (object.count != 40)
57 if (object.next != object)