blob: 311800f39a853c53d01d723c7d5f9ca31dea5c66 [file] [log] [blame]
Fariborz Jahanian52146832010-03-31 18:23:33 +00001// RUN: %clang_cc1 -fsyntax-only -Wno-protocol -verify %s
2// rdar: // 7056600
3
4@protocol P
5- PMeth;
6@end
7
8// Test1
9@interface I <P> @end
10@implementation I @end // no warning with -Wno-protocol
11
12// Test2
13@interface C -PMeth; @end
14@interface C (Category) <P> @end
15@implementation C (Category) @end // no warning with -Wno-protocol
16
17// Test2
18@interface super - PMeth; @end
19@interface J : super <P>
Richard Trieu2fe9b7f2011-12-15 00:38:15 +000020- PMeth; // expected-note {{method definition for 'PMeth' not found}}
Fariborz Jahanian52146832010-03-31 18:23:33 +000021@end
22@implementation J @end // expected-warning {{incomplete implementation}}
23
24// Test3
25@interface K : super <P>
26@end
27@implementation K @end // no warning with -Wno-protocol
28
29// Test4
30@interface Root @end
31@interface L : Root<P> @end
32@implementation L @end // no warning with -Wno-protocol