32 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -Wno-protocol -verify -Wno-objc-root-class %s2 3@protocol P4- PMeth;5@end6 7// Test18@interface I <P> @end9@implementation I @end // no warning with -Wno-protocol10 11// Test212@interface C -PMeth; @end13@interface C (Category) <P> @end14@implementation C (Category) @end // no warning with -Wno-protocol15 16// Test217@interface super - PMeth; @end18@interface J : super <P>19- PMeth; // expected-note {{method 'PMeth' declared here}}20@end21@implementation J @end // expected-warning {{method definition for 'PMeth' not found}}22 23// Test324@interface K : super <P>25@end26@implementation K @end // no warning with -Wno-protocol27 28// Test429@interface Root @end30@interface L : Root<P> @end31@implementation L @end // no warning with -Wno-protocol32