]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Parser/objc-error-qualified-implementation.m
Vendor import of clang tags/RELEASE_33/final r183502 (effectively, 3.3
[FreeBSD/FreeBSD.git] / test / Parser / objc-error-qualified-implementation.m
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 '>'}}