Fariborz Jahanian | b27c156 | 2007-09-22 00:01:35 +0000 | [diff] [blame^] | 1 | @interface INTF1 @end |
| 2 | |
| 3 | @protocol p1,p2,p3; |
| 4 | |
| 5 | @protocol p1; |
| 6 | |
| 7 | @protocol PROTO1 |
| 8 | - (INTF1<p1>*) meth; |
| 9 | @end |
| 10 | |
| 11 | @protocol p1 @end |
| 12 | |
| 13 | @interface I1 <p1> @end |
| 14 | |
| 15 | @interface E1 <p2> @end // expected-error {{cannot find protocol definition for 'p2', referenced by 'E1'}} |
| 16 | |
| 17 | @protocol p2 @end |
| 18 | |
| 19 | |
| 20 | @interface I2 <p1,p2> @end |
| 21 | |
| 22 | @interface E2 <p1,p2,p3> @end // expected-error {{cannot find protocol definition for 'p3', referenced by 'E2'}} |
| 23 | |
| 24 | @class U1, U2; |
| 25 | |
| 26 | @interface E3 : U1 @end // expected-error {{cannot find interface declaration for 'U1', superclass of 'E3'}} |
| 27 | |
| 28 | |
| 29 | @interface I3 : E3 @end |
| 30 | |
| 31 | @interface U2 @end |
| 32 | |
| 33 | @interface I4 : U2 <p1,p2> |
| 34 | @end |