gcc/testsuite/gfortran.dg/gomp/reduction6.f90
raw| 1 | ! { dg-do compile } |
| 2 | |
| 3 | implicit none |
| 4 | integer :: a, b, i |
| 5 | a = 0 |
| 6 | |
| 7 | !$omp simd reduction(inscan,+:a) ! { dg-error "31: With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" } |
| 8 | do i=1,10 |
| 9 | a = a + 1 |
| 10 | end do |
| 11 | |
| 12 | !$omp parallel |
| 13 | !$omp do reduction(inscan,+:a) ! { dg-error "29: With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" } |
| 14 | do i=1,10 |
| 15 | a = a + 1 |
| 16 | end do |
| 17 | !$omp end parallel |
| 18 | end |