[cfe-commits] r44693 - /cfe/trunk/test/Sema/static-type-protocol-1.m

Fariborz Jahanian fjahanian at apple.com
Fri Dec 7 17:00:55 PST 2007


Author: fjahanian
Date: Fri Dec  7 19:00:55 2007
New Revision: 44693

URL: http://llvm.org/viewvc/llvm-project?rev=44693&view=rev
Log:
Test case for my last patch for implementation of static protocoled type
used as reciver type of a message expression.

Added:
    cfe/trunk/test/Sema/static-type-protocol-1.m

Added: cfe/trunk/test/Sema/static-type-protocol-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/static-type-protocol-1.m?rev=44693&view=auto

==============================================================================
--- cfe/trunk/test/Sema/static-type-protocol-1.m (added)
+++ cfe/trunk/test/Sema/static-type-protocol-1.m Fri Dec  7 19:00:55 2007
@@ -0,0 +1,27 @@
+// RUN: clang -rewrite-test %s
+
+ at protocol Proto
+- (void) ProtoDidget;
+ at end
+
+ at protocol MyProto <Proto>
+- (void) widget;
+ at end
+
+ at interface Foo 
+- (void)StillMode;
+ at end
+
+ at interface Container
++ (void)MyMeth;
+ at end
+
+ at implementation Container
++ (void)MyMeth
+{
+  Foo *view;
+  [(Foo <MyProto> *)view StillMode];
+  [(Foo <MyProto> *)view widget];
+  [(Foo <MyProto> *)view ProtoDidget];
+}
+ at end





More information about the cfe-commits mailing list