[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / class-proto-1.m
blob246b5002f67f4a0214c8231cc4518b2293ed9335
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @interface INTF1 @end
5 @protocol p1,p2,p3;
7 @protocol p1;
9 @protocol PROTO1
10 - (INTF1<p1>*) meth;
11 @end
13 @protocol p1 @end
15 @interface I1 <p1> @end
17 @interface E1 <p2> @end // expected-warning {{cannot find protocol definition for 'p2'}}
19 @protocol p2 @end
22 @interface I2 <p1,p2> @end
24 @interface E2 <p1,p2,p3> @end  // expected-warning {{cannot find protocol definition for 'p3'}}
26 @class U1, U2;
28 @interface E3 : U1 @end // expected-error {{cannot find interface declaration for 'U1', superclass of 'E3'}}
31 @interface I3 : E3  @end
33 @interface U2 @end
35 @interface I4 : U2 <p1,p2>
36 @end