1 // RUN: %clang_cc1 -fsyntax-only -Wno-protocol -verify %s
10 @implementation I @end // no warning with -Wno-protocol
13 @interface C -PMeth; @end
14 @interface C (Category) <P> @end
15 @implementation C (Category) @end // no warning with -Wno-protocol
18 @interface super - PMeth; @end
19 @interface J : super <P>
20 - PMeth; // expected-note {{ method definition for 'PMeth' not found}}
22 @implementation J @end // expected-warning {{incomplete implementation}}
25 @interface K : super <P>
27 @implementation K @end // no warning with -Wno-protocol
31 @interface L : Root<P> @end
32 @implementation L @end // no warning with -Wno-protocol