aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/taskwait-depend-nowait-1.c
blob: 54df0235bdeb2101315a1104c54b81e83e1154c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void
foo (int *p)
{
  #pragma omp taskwait depend(iterator(i = 0:16) , in : p[i]) nowait depend(out : p[32])
}

void
bar (int *p)
{
  #pragma omp taskwait depend(mutexinoutset : p[0]) nowait	/* { dg-error "'mutexinoutset' kind in 'depend' clause on a 'taskwait' construct" } */
}

void
baz (void)
{
  #pragma omp taskwait nowait	/* { dg-error "'taskwait' construct with 'nowait' clause but no 'depend' clauses" } */
}