summaryrefslogtreecommitdiffstats
path: root/test/ARCMT/block_copy_release.m.result
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARCMT/block_copy_release.m.result')
-rw-r--r--test/ARCMT/block_copy_release.m.result15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ARCMT/block_copy_release.m.result b/test/ARCMT/block_copy_release.m.result
new file mode 100644
index 0000000..b292b64
--- /dev/null
+++ b/test/ARCMT/block_copy_release.m.result
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
+// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -x objective-c %s > %t
+// RUN: diff %t %s.result
+
+#include "Common.h"
+
+typedef void (^blk)(int);
+
+void func(blk b) {
+ blk c = [b copy];
+}
+
+void func2(id b) {
+ id c = [b copy];
+}
OpenPOWER on IntegriCloud