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" } { "" } } */
6 #include <objc/runtime.h>
18 @implementation MyRootClass
19 + (id) initialize { return self; }
20 + (id) alloc { return class_createInstance (self, 0); }
21 - (id) init { return self; }
24 @interface Test : MyRootClass
29 /* TODO: Test more types of properties with different semantics
30 (retain, copy, atomic, nonatomic, and test various C and
31 Objective-C types). */
40 Test *object = [[Test alloc] init];
42 /* Check that the synthesized methods exist and work. Do not invoke
43 them via property syntax - that is another test. Here we just
44 want to test the synthesis of the methods. */
47 if ([object v1] != 400)