pr66326.cc: Do not include cilk.h.
authorUros Bizjak <ubizjak@gmail.com>
Mon, 9 Nov 2015 19:49:44 +0000 (20:49 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 9 Nov 2015 19:49:44 +0000 (20:49 +0100)
* g++.dg/cilk-plus/CK/pr66326.cc: Do not include cilk.h.
(main): Use _Cilk_spawn instead of cilk_spawn.

From-SVN: r230048

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc

index da4f940333470b5e50eb0fcfcd620a1084fbdc0c..37ce460ebcd97733720442d8bd6017da151d2688 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
+
+       * 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  <thomas@codesourcery.com>
 
        * gcc.target/i386/addr-space-3.c: Fix quoting in dg-final
index 1114ebdda8236b55602ed90207c022254f710763..057a9ced2830ffe9557ec033d4680624833b17b8 100644 (file)
@@ -2,7 +2,6 @@
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
 /* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
 
-#include <cilk/cilk.h>
 #include <vector>
 #include <random>
 
@@ -23,8 +22,8 @@ auto compute() {
 
 int main() {
   std::vector<double> 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());