summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cilk-plus/pr78306.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cilk-plus/pr78306.c')
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/pr78306.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/pr78306.c b/gcc/testsuite/gcc.dg/cilk-plus/pr78306.c
deleted file mode 100644
index 4604271441c..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/pr78306.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-O2 -fcilkplus" } */
-
-#define _FORTIFY_SOURCE 2
-#include <string.h>
-
-int sum(int low, int high)
-{
- if(low == high) {
- return low;
- }
-
- int mid = low + (high-low)/2;
- int a = _Cilk_spawn sum(low, mid);
- int b = sum(mid+1, high);
-
- // Some very expensive computation here
- int foo[64];
- memset(foo, 0, 64*sizeof(int)); // <--- Fails
-
- _Cilk_sync;
-
- return a+b;
-}
-
-int main(void) {
- if (sum(0, 100) != 5050)
- __builtin_abort ();
- return 0;
-}