1 ! RUN: %S/test_errors.sh %s %t %flang_fc1 -fopenmp
4 ! 2.15.3.6 Reduction Clause
10 integer :: a(10),b(10,10,10)
12 !ERROR: 'a' in REDUCTION clause is a zero size array section
13 !$omp parallel do reduction(+:a(1:0:2))
19 !ERROR: 'a' in REDUCTION clause is a zero size array section
20 !$omp parallel do reduction(+:a(1:0))
26 !ERROR: 'b' in REDUCTION clause is a zero size array section
27 !$omp parallel do reduction(+:b(1:6,5,1:0))
33 !ERROR: 'b' in REDUCTION clause is a zero size array section
34 !$omp parallel do reduction(+:b(1:6,1:0:5,1:10))
39 end program omp_reduction