| 1 |
subroutine foo() |
| 2 |
implicit none |
| 3 |
integer :: i, r |
| 4 |
!$omp loop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 5 |
do i = 1, 64 |
| 6 |
end do |
| 7 |
!$omp teams loop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 8 |
do i = 1, 64 |
| 9 |
end do |
| 10 |
!$omp parallel loop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 11 |
do i = 1, 64 |
| 12 |
end do |
| 13 |
!$omp target teams loop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 14 |
do i = 1, 64 |
| 15 |
end do |
| 16 |
!$omp target parallel loop reduction(task, +: r) ! { dg-error "Only DEFAULT permitted as reduction-modifier in REDUCTION clause" } |
| 17 |
do i = 1, 64 |
| 18 |
end do |
| 19 |
|
| 20 |
!$omp loop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 21 |
! { dg-error "With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 22 |
do i = 1, 64 |
| 23 |
end do |
| 24 |
!$omp teams loop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 25 |
! { dg-error "With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 26 |
do i = 1, 64 |
| 27 |
end do |
| 28 |
!$omp parallel loop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 29 |
! { dg-error "With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 30 |
do i = 1, 64 |
| 31 |
end do |
| 32 |
!$omp target teams loop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 33 |
! { dg-error "With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 34 |
do i = 1, 64 |
| 35 |
end do |
| 36 |
!$omp target parallel loop reduction(inscan, +: r) ! { dg-error "'inscan' REDUCTION clause on construct other than DO, SIMD, DO SIMD, PARALLEL DO, PARALLEL DO SIMD" } |
| 37 |
! { dg-error "With INSCAN at .1., expected loop body with ..OMP SCAN between two structured block sequences" "" { target *-*-* } .-1 } |
| 38 |
do i = 1, 64 |
| 39 |
end do |
| 40 |
|
| 41 |
!$omp loop bind(target) ! { dg-error "17: Expected TEAMS, PARALLEL or THREAD as binding in BIND" } |
| 42 |
do i = 1, 64 |
| 43 |
end do |
| 44 |
|
| 45 |
!$omp loop bind(teams) bind(teams) ! { dg-error "Duplicated 'bind' clause" } |
| 46 |
do i = 1, 64 |
| 47 |
end do |
| 48 |
|
| 49 |
end |