1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 @protocol P1 4 - (void) P1proto; // expected-note {{method declared here}} 5 + (void) ClsP1Proto; // expected-note {{method declared here}} 6 - (void) DefP1proto; 7 @end 8 @protocol P2 9 - (void) P2proto; // expected-note {{method declared here}} 10 + (void) ClsP2Proto; // expected-note {{method declared here}} 11 @end 12 13 @protocol P3<P2> 14 - (void) P3proto; // expected-note {{method declared here}} 15 + (void) ClsP3Proto; // expected-note {{method declared here}} 16 + (void) DefClsP3Proto; 17 @end 18 19 @protocol PROTO<P1, P3> 20 - (void) meth; // expected-note {{method declared here}} 21 - (void) meth : (int) arg1; // expected-note {{method declared here}} 22 + (void) cls_meth : (int) arg1; // expected-note {{method declared here}} 23 @end 24 25 @interface INTF <PROTO> // expected-note 3 {{required for direct or indirect protocol 'PROTO'}} \ 26 // expected-note 2 {{required for direct or indirect protocol 'P1'}} \ 27 // expected-note 2 {{required for direct or indirect protocol 'P3'}} \ 28 // expected-note 2 {{required for direct or indirect protocol 'P2'}} 29 @end 30 31 @implementation INTF // expected-warning {{incomplete implementation}} \ 32 // expected-warning 9 {{method in protocol not implemented [-Wprotocol}} 33 - (void) DefP1proto{} 34 35 + (void) DefClsP3Proto{} 36 37 @end 38