From: Uros Bizjak Date: Mon, 9 Nov 2015 19:49:44 +0000 (+0100) Subject: pr66326.cc: Do not include cilk.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4483f3eeb72ef2ba566b0603d7660b15bb3bf124;p=gcc.git pr66326.cc: Do not include cilk.h. * g++.dg/cilk-plus/CK/pr66326.cc: Do not include cilk.h. (main): Use _Cilk_spawn instead of cilk_spawn. From-SVN: r230048 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index da4f9403334..37ce460ebcd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-11-09 Uros Bizjak + + * g++.dg/cilk-plus/CK/pr66326.cc: Do not include cilk.h. + (main): Use _Cilk_spawn instead of cilk_spawn. + 2015-11-09 Thomas Schwinge * gcc.target/i386/addr-space-3.c: Fix quoting in dg-final diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc index 1114ebdda82..057a9ced283 100644 --- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc +++ b/gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc @@ -2,7 +2,6 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* } } } */ -#include #include #include @@ -23,8 +22,8 @@ auto compute() { int main() { std::vector v1, v2, v3; - cilk_spawn [&] { v1 = compute(); }(); - cilk_spawn [&] { v2 = compute(); }(); + _Cilk_spawn [&] { v1 = compute(); }(); + _Cilk_spawn [&] { v2 = compute(); }(); v3 = compute(); do_not_optimize_away(v1.data()); do_not_optimize_away(v2.data());