1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
2 /* { dg-do compile } */
12 @implementation MyRootClass
15 @dynamic isa; /* { dg-error ".@dynamic. not in @implementation context" } */
17 @interface Test : MyRootClass
26 @interface Test (Category)
29 @implementation Test (Category)
34 @interface AnotherTest : MyRootClass
40 @implementation AnotherTest
41 @dynamic one; /* { dg-line dynamic_one_first } */
42 @dynamic one; /* { dg-error "property .one. already specified in .@dynamic." } */
43 /* { dg-message "originally specified here" "" { target *-*-* } dynamic_one_first } */
44 @dynamic three; /* { dg-error "no declaration of property .three. found in the interface" } */