diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-02-14 09:47:31 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-02-14 09:47:31 +0000 |
| commit | 28d10da69f52af1b01fbc12fd503621713641500 (patch) | |
| tree | 76222f9698fdaafdfe23235d18d5ac804ea515d6 /lib/BlocksRuntime/tests/recursiveassign.c | |
| parent | 08c9d0bc3ac37d7d5def0318a1420e67cca53e41 (diff) | |
| download | compiler-rt-28d10da69f52af1b01fbc12fd503621713641500.tar.gz | |
Move tests for BlocksRuntime and builtins to corresponding directories under test/
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/BlocksRuntime/tests/recursiveassign.c')
| -rw-r--r-- | lib/BlocksRuntime/tests/recursiveassign.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/lib/BlocksRuntime/tests/recursiveassign.c b/lib/BlocksRuntime/tests/recursiveassign.c deleted file mode 100644 index f0070cbe5..000000000 --- a/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; -} - |
