Commit 4483f3ee by Uros Bizjak Committed by Uros Bizjak

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
parent 4fe19f1d
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
......
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment