blob: 5d721e509ed5990ccc6fee70e278dfe1f9cad500 [file] [log] [blame]
Steve Naroffb5584222009-02-26 11:32:02 +00001// RUN: clang -fsyntax-only -verify %s
2@interface NSObject @end
3
4@protocol ProtocolA
5
6+ (id)classMethod;
7- (id)instanceMethod;
8
9@end
10
11@protocol ProtocolB <ProtocolA>
12
13@end
14
15@interface Foo : NSObject <ProtocolB>
16
17@end
18
19@interface SubFoo : Foo
20
21@end
22
23@implementation SubFoo
24
25+ (id)method {
26 return [super classMethod];
27}
28
29- (id)method {
30 return [super instanceMethod];
31}
32
33@end