summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/BlocksRuntime/tests/recursiveassign.c
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-14 09:47:31 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-14 09:47:31 +0000
commit8c1441f86037d62f8e164cc458dff8b91d015998 (patch)
tree8aa7b78ce697409ce5d162355de9541229af167c /compiler-rt/lib/BlocksRuntime/tests/recursiveassign.c
parentedc95ee196946ce8f744ea8fb2bdb1cfbade8156 (diff)
downloadbcm5719-llvm-8c1441f86037d62f8e164cc458dff8b91d015998.tar.gz
bcm5719-llvm-8c1441f86037d62f8e164cc458dff8b91d015998.zip
Move tests for BlocksRuntime and builtins to corresponding directories under test/
llvm-svn: 201396
Diffstat (limited to 'compiler-rt/lib/BlocksRuntime/tests/recursiveassign.c')
-rw-r--r--compiler-rt/lib/BlocksRuntime/tests/recursiveassign.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/compiler-rt/lib/BlocksRuntime/tests/recursiveassign.c b/compiler-rt/lib/BlocksRuntime/tests/recursiveassign.c
deleted file mode 100644
index f0070cbe5c9..00000000000
--- a/compiler-rt/lib/BlocksRuntime/tests/recursiveassign.c
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-
-/*
- * recursiveassign.c
- * testObjects
- *
- * Created by Blaine Garst on 12/3/08.
- *
- */
-
-// CONFIG rdar://6639533
-
-// The compiler is prefetching x->forwarding before evaluting code that recomputes forwarding and so the value goes to a place that is never seen again.
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <Block.h>
-
-
-int main(int argc, char* argv[]) {
-
- __block void (^recursive_copy_block)(int) = ^(int arg) { printf("got wrong Block\n"); exit(1); };
-
-
- recursive_copy_block = Block_copy(^(int i) {
- if (i > 0) {
- recursive_copy_block(i - 1);
- }
- else {
- printf("done!\n");
- }
- });
-
-
- recursive_copy_block(5);
-
- printf("%s: Success\n", argv[0]);
- return 0;
-}
-
OpenPOWER on IntegriCloud