1 /* Test use of @optional/@required keywords in @protocol class. */
2 /* { dg-do compile } */
14 @interface MyProto2 <MyProto1>
15 @required /* { dg-error ".@required. is allowed in @protocol context only" } */
17 @optional /* { dg-error ".@optional. is allowed in @protocol context only" } */
21 @implementation MyProto2