Fariborz Jahanian | c716c94 | 2007-09-21 15:40:54 +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 PROTO2<p1> // expected-error {{cannot find protocol definition for 'p1', referenced by 'PROTO2'}} | ||||
12 | @end | ||||
13 | |||||
14 | @protocol p1 @end | ||||
15 | |||||
16 | @protocol PROTO<p1> | ||||
17 | @end | ||||
18 | |||||
19 | @protocol PROTO<p1> // expected-error {{duplicate protocol declaration of 'PROTO'}} | ||||
20 | @end | ||||
21 | |||||
22 | @protocol PROTO3<p1, p1> | ||||
23 | @end | ||||
24 | |||||
25 | @protocol p2 <p1> | ||||
26 | @end | ||||
27 | |||||
28 | @protocol PROTO4 <p1, p2, PROTO, PROTO3, p3> // expected-error {{cannot find protocol definition for 'p3', referenced by 'PROTO4'}} | ||||
29 | @end |