1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp" } */
4 void bar (int a
[10][10][10]);
6 foo (int a
[10][10][10], int **b
, int x
)
9 #pragma omp task depend(out: a[2:4][3:0][:7]) /* { dg-error "zero length array section" } */
11 #pragma omp task depend(inout: b[:7][0:0][:0]) /* { dg-error "zero length array section" } */
13 #pragma omp task depend(in: c[:][:][10:]) /* { dg-error "zero length array section" } */
15 #pragma omp task depend(out: a[2:4][3:0][:x]) /* { dg-error "zero length array section" } */
17 #pragma omp task depend(inout: b[:x][0:0][:0]) /* { dg-error "zero length array section" } */
19 #pragma omp task depend(in: c[:][x-2:x][10:]) /* { dg-error "zero length array section" } */