| 1 |
module m |
| 2 |
integer :: v |
| 3 |
interface |
| 4 |
subroutine foo(i) |
| 5 |
integer :: i |
| 6 |
end |
| 7 |
end interface |
| 8 |
end |
| 9 |
|
| 10 |
subroutine bar |
| 11 |
use m |
| 12 |
implicit none |
| 13 |
integer :: i |
| 14 |
!$omp taskloop reduction (task, +: v) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 15 |
do i = 0, 63 |
| 16 |
call foo (i) |
| 17 |
end do |
| 18 |
!$omp taskloop simd reduction (task, +: v) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 19 |
do i = 0, 63 |
| 20 |
v = v + 1 |
| 21 |
end do |
| 22 |
!$omp teams reduction (task, +: v) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 23 |
call foo (i) |
| 24 |
!$omp end teams |
| 25 |
!$omp teams distribute reduction (task, +: v) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 26 |
do i = 0, 63 |
| 27 |
call foo (i) |
| 28 |
end do |
| 29 |
!$omp end teams distribute |
| 30 |
end |