blob: b93c9626d189e342100fd25c8ed6bc5f46ac43af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { 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;
}
|