[cfe-commits] r66965 - /cfe/trunk/test/CodeGenObjC/blocks.m

Chris Lattner sabre at nondot.org
Fri Mar 13 15:00:25 PDT 2009


Author: lattner
Date: Fri Mar 13 17:00:25 2009
New Revision: 66965

URL: http://llvm.org/viewvc/llvm-project?rev=66965&view=rev
Log:
add a testcase for recursion through blocks pointers, rdar://6676764.

Added:
    cfe/trunk/test/CodeGenObjC/blocks.m

Added: cfe/trunk/test/CodeGenObjC/blocks.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/blocks.m?rev=66965&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/blocks.m (added)
+++ cfe/trunk/test/CodeGenObjC/blocks.m Fri Mar 13 17:00:25 2009
@@ -0,0 +1,17 @@
+// RUN: clang -emit-llvm -fblocks -S -o - %s
+// rdar://6676764
+
+struct S {
+  void (^F)(struct S*);
+} P;
+
+
+ at interface T
+
+  - (int)foo: (T (^)(T*)) x;
+ at end
+
+void foo(T *P) {
+ [P foo: 0];
+}
+





More information about the cfe-commits mailing list