gcc/testsuite/c-c++-common/gomp/taskwait-depend-nowait-1.c
raw| 1 | void |
| 2 | foo (int *p) |
| 3 | { |
| 4 | #pragma omp taskwait depend(iterator(i = 0:16) , in : p[i]) nowait depend(out : p[32]) |
| 5 | } |
| 6 | |
| 7 | void |
| 8 | bar (int *p) |
| 9 | { |
| 10 | #pragma omp taskwait depend(mutexinoutset : p[0]) nowait /* { dg-error "'mutexinoutset' kind in 'depend' clause on a 'taskwait' construct" } */ |
| 11 | } |
| 12 | |
| 13 | void |
| 14 | baz (void) |
| 15 | { |
| 16 | #pragma omp taskwait nowait /* { dg-error "'taskwait' construct with 'nowait' clause but no 'depend' clauses" } */ |
| 17 | } |