[llvm-commits] [llvm] r60079 - /llvm/trunk/test/FrontendObjC/2008-11-25-Blocks.m
Bill Wendling
isanbard at gmail.com
Tue Nov 25 18:21:13 PST 2008
Author: void
Date: Tue Nov 25 20:21:12 2008
New Revision: 60079
URL: http://llvm.org/viewvc/llvm-project?rev=60079&view=rev
Log:
Add test for rdar://6394879.
Added:
llvm/trunk/test/FrontendObjC/2008-11-25-Blocks.m
Added: llvm/trunk/test/FrontendObjC/2008-11-25-Blocks.m
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC/2008-11-25-Blocks.m?rev=60079&view=auto
==============================================================================
--- llvm/trunk/test/FrontendObjC/2008-11-25-Blocks.m (added)
+++ llvm/trunk/test/FrontendObjC/2008-11-25-Blocks.m Tue Nov 25 20:21:12 2008
@@ -0,0 +1,17 @@
+// RUN: %llvmgcc -c %s -o /dev/null
+// rdar://6394879
+
+ at interface bork
+- (id)B:(void (^)())blk;
+- (void)C;
+ at end
+ at implementation bork
+- (id)B:(void (^)())blk {
+ __attribute__((__blocks__(byref))) bork* new = ((void *)0);
+ blk();
+}
+- (void)C {
+ __attribute__((__blocks__(byref))) id var;
+ [self B:^() {}];
+}
+ at end
More information about the llvm-commits
mailing list