brintos

brintos / llvm-project-archived public Read only

0
0
Text · 852 B · 0152a72 Raw
28 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s2 3@protocol P4@end5 6@interface I @end7 8@implementation I<P> @end // expected-error {{@implementation declaration cannot be protocol qualified}}9 10@interface J < P,P >11@end12 13 14@implementation J < P,P > // expected-error {{@implementation declaration cannot be protocol qualified}}15@end16 17@interface K @end18 19@implementation K <P // expected-error {{@implementation declaration cannot be protocol qualified}} expected-error {{expected '>'}} expected-note {{to match this '<'}}20@end21 22@implementation I (Cat) <P>  // expected-error {{@implementation declaration cannot be protocol qualified}}23- (void) Meth {}24@end25 26@implementation I (Cat1) <P // expected-error {{@implementation declaration cannot be protocol qualified}} expected-error {{expected '>'}} expected-note {{to match this '<'}}27@end28