PR target/84336
[official-gcc.git] / gcc / testsuite / objc.dg / enhanced-proto-1.m
blobfef4c97b5c87465c4873f6a65ca5440c1a03514d
1 /* APPLE LOCAL file C* language */
2 /* Test use of @optional/@required keywords in @protocol class. */
3 /* { dg-do compile } */
5 @protocol MyProto1 
6 @optional
7 - (void) FOO;
8 @optional
9 - (void) FOO;
10 @required 
11 - (void) REQ;
12 @optional
13 @end
15 @protocol  MyProto2 <MyProto1>
16 - (void) FOO2;
17 @optional
18 - (void) FOO3;
19 @end