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' with typedefs. */
9 #include <objc/runtime.h>
13 @interface MyRootClass
22 - (void) setCount: (int)count;
24 + (void) setClassCount: (int)count;
27 @implementation MyRootClass
28 + (id) initialize { return self; }
29 + (id) alloc { return class_createInstance (self, 0); }
30 - (id) init { return self; }
35 - (void) setCount: (int)count
43 + (void) setClassCount: (int)count
49 typedef MyRootClass MyType;
53 MyType *object = [[MyRootClass alloc] init];
56 if (object.count != 1974)