| 1 |
subroutine foo() |
| 2 |
implicit none |
| 3 |
integer :: i, r |
| 4 |
!$omp taskloop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 5 |
do i = 1, 64 |
| 6 |
end do |
| 7 |
!$omp taskloop simd reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 8 |
do i = 1, 64 |
| 9 |
end do |
| 10 |
!$omp master taskloop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 11 |
do i = 1, 64 |
| 12 |
end do |
| 13 |
!$omp master taskloop simd reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 14 |
do i = 1, 64 |
| 15 |
end do |
| 16 |
!$omp parallel master taskloop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 17 |
do i = 1, 64 |
| 18 |
end do |
| 19 |
!$omp parallel master taskloop simd reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 20 |
do i = 1, 64 |
| 21 |
end do |
| 22 |
|
| 23 |
!$omp taskloop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 24 |
do i = 1, 64 ! { dg-error "OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 25 |
end do |
| 26 |
!$omp taskloop simd reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 27 |
do i = 1, 64 ! { dg-error "OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 28 |
end do |
| 29 |
!$omp master taskloop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 30 |
! { dg-error "With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 31 |
do i = 1, 64 |
| 32 |
end do |
| 33 |
!$omp master taskloop simd reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 34 |
! { dg-error "With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 35 |
do i = 1, 64 |
| 36 |
end do |
| 37 |
!$omp parallel master taskloop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 38 |
do i = 1, 64 ! { dg-error "OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 39 |
end do |
| 40 |
!$omp parallel master taskloop simd reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 41 |
do i = 1, 64 ! { dg-error "OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 42 |
end do |
| 43 |
end |
| 44 |
|
| 45 |
|
| 46 |
subroutine bar() |
| 47 |
implicit none |
| 48 |
integer :: i, r |
| 49 |
r = 0 |
| 50 |
!$omp parallel reduction(+:r) |
| 51 |
!$omp master taskloop in_reduction(+:r) |
| 52 |
do i = 1, 64 |
| 53 |
end do |
| 54 |
!$omp master taskloop simd in_reduction(+:r) |
| 55 |
do i = 1, 64 |
| 56 |
end do |
| 57 |
!$omp master |
| 58 |
!$omp taskloop in_reduction(+:r) |
| 59 |
do i = 1, 64 |
| 60 |
end do |
| 61 |
!$omp taskloop simd in_reduction(+:r) |
| 62 |
do i = 1, 64 |
| 63 |
end do |
| 64 |
!$omp end master |
| 65 |
!$omp end parallel |
| 66 |
|
| 67 |
!$omp parallel master taskloop in_reduction(+:r) ! { dg-error "Failed to match clause" } |
| 68 |
do i = 1, 64 |
| 69 |
end do |
| 70 |
|
| 71 |
!$omp parallel master taskloop simd in_reduction(+:r) ! { dg-error "Failed to match clause" } |
| 72 |
do i = 1, 64 |
| 73 |
end do |
| 74 |
end |