1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
2 /* { dg-do compile } */
12 @implementation MyRootClass
15 /* Test @property/@dynamic in a category. First, a case where
16 @dynamic should turn off all warnings. */
18 @interface MyRootClass (Category)
22 @implementation MyRootClass (Category)
26 return self.a; /* This should compile into [self a] with no warnings. */
32 /* Test @property/@dynamic in a category. Second, a case with a
33 missing setter and no @dynamic. A warning should be generated. */
35 @interface MyRootClass (Category2)
39 @implementation MyRootClass (Category2)
48 @end /* { dg-warning "incomplete implementation" } */
49 /* { dg-warning "method definition for .-setB:. not found" "" { target *-*-* } 48 } */