1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
2 /* { dg-do compile } */
12 @implementation MyRootClass
15 /* Test @property/@dynamic with protocols. */
22 /* This class is declared to conform to the protocol, but because of
23 @dynamic, no warnings are issued even if the getter/setter for the
24 @property are missing. */
25 @interface MyClass1 : MyRootClass <MyProtocol>
28 @implementation MyClass1
33 /* This class is declared to conform to the protocol and warnings are
34 issued because the setter for the @property is missing. */
35 @interface MyClass2 : MyRootClass <MyProtocol>
38 @implementation MyClass2
43 @end /* { dg-warning "incomplete implementation" } */
44 /* { dg-warning "method definition for .-setA:. not found" "" { target *-*-* } 43 } */
45 /* { dg-warning "class .MyClass2. does not fully implement the .MyProtocol. protocol" "" { target *-*-* } 43 } */