1 ! RUN: %S/test_errors.sh %s %t %flang -fopenmp
5 ! List items used in depend clauses cannot be zero-length array sections.
8 integer :: a(10) , b(10,10)
15 !ERROR: 'a' in DEPEND clause is a zero size array section
16 !ERROR: 'b' in DEPEND clause is a zero size array section
17 !$omp task shared(a,b) depend(out: a(2:1), b(3:1, 1:-1))
21 !ERROR: Stride should not be specified for array section in DEPEND clause
22 !$omp task shared(x) depend(in: a(5:10:1))
29 end program omp_depend