1 /* Test use of @optional/@required keywords in @protocol class. */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
15 @interface MyProto2 <MyProto1>
16 @required /* { dg-error ".@required. is allowed in @protocol context only" } */
18 @optional /* { dg-error ".@optional. is allowed in @protocol context only" } */
22 @implementation MyProto2