Fariborz Jahanian | 51c30af | 2013-04-24 23:23:47 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s |
| 2 | // rdar://12233858 |
| 3 | |
| 4 | @protocol P |
| 5 | @end |
| 6 | |
| 7 | @interface I @end |
| 8 | |
| 9 | @implementation I<P> @end // expected-error {{@implementation declaration can not be protocol qualified}} |
| 10 | |
| 11 | @interface J < P,P > |
| 12 | @end |
| 13 | |
| 14 | |
| 15 | @implementation J < P,P > // expected-error {{@implementation declaration can not be protocol qualified}} |
| 16 | @end |
| 17 | |
| 18 | @interface K @end |
| 19 | |
| 20 | @implementation K <P // expected-error {{@implementation declaration can not be protocol qualified}} |
| 21 | @end // expected-error {{expected '>'}} |