Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/cilk-plus/CK/concec_cilk_spawn.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-fcilkplus" } */ /* <feature> Consecutive _Cilk_spawn tokens are not permitted </feature> */ int spawn_func (int arg) { return arg + 1; } void func () { int a; a = _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */ a = _Cilk_spawn _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */ a = _Cilk_spawn _Cilk_spawn _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */ return; }