Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fcilkplus" } */ | |
3 | |
4 /* <feature> Consecutive _Cilk_spawn tokens are not permitted | |
5 </feature> | |
6 */ | |
7 | |
8 int spawn_func (int arg) | |
9 { | |
10 return arg + 1; | |
11 } | |
12 | |
13 void func () | |
14 { | |
15 int a; | |
16 a = _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */ | |
17 a = _Cilk_spawn _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */ | |
18 a = _Cilk_spawn _Cilk_spawn _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */ | |
19 return; | |
20 } |