diff options
-rw-r--r-- | test/Sema/static-type-protocol-1.m | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/Sema/static-type-protocol-1.m b/test/Sema/static-type-protocol-1.m new file mode 100644 index 0000000000..6a6ec40dbd --- /dev/null +++ b/test/Sema/static-type-protocol-1.m @@ -0,0 +1,27 @@ +// RUN: clang -rewrite-test %s + +@protocol Proto +- (void) ProtoDidget; +@end + +@protocol MyProto <Proto> +- (void) widget; +@end + +@interface Foo +- (void)StillMode; +@end + +@interface Container ++ (void)MyMeth; +@end + +@implementation Container ++ (void)MyMeth +{ + Foo *view; + [(Foo <MyProto> *)view StillMode]; + [(Foo <MyProto> *)view widget]; + [(Foo <MyProto> *)view ProtoDidget]; +} +@end |