[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / no-protocol-option-tests.m
blob5d2da0af48e0393e1826cd976fd1efb4f80874e7
1 // RUN: %clang_cc1 -fsyntax-only -Wno-protocol -verify %s
2 // rdar: // 7056600
4 @protocol P
5 - PMeth;
6 @end
8 // Test1
9 @interface I  <P> @end
10 @implementation I @end //  no warning with -Wno-protocol
12 // Test2
13 @interface C -PMeth; @end
14 @interface C (Category) <P> @end
15 @implementation C (Category) @end //  no warning with -Wno-protocol
17 // Test2
18 @interface super - PMeth; @end
19 @interface J : super <P>
20 - PMeth;        // expected-note {{ method definition for 'PMeth' not found}}
21 @end
22 @implementation J @end  // expected-warning {{incomplete implementation}}
24 // Test3
25 @interface K : super <P>
26 @end
27 @implementation K @end // no warning with -Wno-protocol
29 // Test4
30 @interface Root @end
31 @interface L : Root<P> @end
32 @implementation L @end // no warning with -Wno-protocol