blob: dbf9d38670fc5b7aa999b614dc0e64b330f7dd16 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
Fariborz Jahanianc92942c2007-12-08 01:00:55 +00002
3@protocol Proto
4- (void) ProtoDidget;
5@end
6
7@protocol MyProto <Proto>
8- (void) widget;
9@end
10
11@interface Foo
12- (void)StillMode;
13@end
14
15@interface Container
16+ (void)MyMeth;
17@end
18
19@implementation Container
20+ (void)MyMeth
21{
22 Foo *view;
23 [(Foo <MyProto> *)view StillMode];
24 [(Foo <MyProto> *)view widget];
25 [(Foo <MyProto> *)view ProtoDidget];
26}
27@end