1 // RUN: %clang_cc1 -fsyntax-only -Wno-protocol -verify -Wno-objc-root-class %s
9 @implementation I @end // no warning with -Wno-protocol
12 @interface C -PMeth; @end
13 @interface C (Category) <P> @end
14 @implementation C (Category) @end // no warning with -Wno-protocol
17 @interface super - PMeth; @end
18 @interface J : super <P>
19 - PMeth; // expected-note {{method 'PMeth' declared here}}
21 @implementation J @end // expected-warning {{method definition for 'PMeth' not found}}
24 @interface K : super <P>
26 @implementation K @end // no warning with -Wno-protocol
30 @interface L : Root<P> @end
31 @implementation L @end // no warning with -Wno-protocol