From c92942c5fe8330c8c090c84ecde31ee8240c95bb Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sat, 8 Dec 2007 01:00:55 +0000 Subject: [PATCH] Test case for my last patch for implementation of static protocoled type used as reciver type of a message expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44693 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/static-type-protocol-1.m | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/Sema/static-type-protocol-1.m 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 +- (void) widget; +@end + +@interface Foo +- (void)StillMode; +@end + +@interface Container ++ (void)MyMeth; +@end + +@implementation Container ++ (void)MyMeth +{ + Foo *view; + [(Foo *)view StillMode]; + [(Foo *)view widget]; + [(Foo *)view ProtoDidget]; +} +@end -- 2.40.0