1 // RUN: %clang_cc1 -fsyntax-only -verify %s
15 @interface I1 <p1> @end
17 @interface E1 <p2> @end // expected-warning {{cannot find protocol definition for 'p2'}}
22 @interface I2 <p1,p2> @end
24 @interface E2 <p1,p2,p3> @end // expected-warning {{cannot find protocol definition for 'p3'}}
26 @class U1, U2; // expected-note {{forward declaration of class here}}
28 @interface E3 : U1 @end // expected-error {{attempting to use the forward class 'U1' as superclass of 'E3'}}
31 @interface I3 : E3 @end
35 @interface I4 : U2 <p1,p2>