| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-fopenmp" } |
| 3 |
|
| 4 |
module m |
| 5 |
implicit none |
| 6 |
integer :: i |
| 7 |
|
| 8 |
contains |
| 9 |
|
| 10 |
subroutine foo (x, y) |
| 11 |
integer :: x, y |
| 12 |
|
| 13 |
!$omp simd linear (x: step (y + 1), ref) ! { dg-error "LINEAR clause modifier other than VAL used on DO or SIMD construct" } |
| 14 |
do i = 0, 10 |
| 15 |
x = x + y + 1 |
| 16 |
end do |
| 17 |
|
| 18 |
!$omp simd linear (x: uval, step (y + 1)) ! { dg-error "LINEAR clause modifier other than VAL used on DO or SIMD construct" } |
| 19 |
do i = 0, 10 |
| 20 |
x = x + y + 1 |
| 21 |
end do |
| 22 |
|
| 23 |
!$omp parallel do linear (x: ref, step (y + 1)) ! { dg-error "LINEAR clause modifier other than VAL used on DO or SIMD construct" } |
| 24 |
do i = 0, 10 |
| 25 |
x = x + y + 1 |
| 26 |
end do |
| 27 |
|
| 28 |
!$omp parallel do linear (x: step (y + 1), uval) ! { dg-error "LINEAR clause modifier other than VAL used on DO or SIMD construct" } |
| 29 |
do i = 0, 10 |
| 30 |
x = x + y + 1 |
| 31 |
end do |
| 32 |
|
| 33 |
!$omp parallel do simd linear (x: step (y + 1), ref) ! { dg-error "LINEAR clause modifier other than VAL used on DO or SIMD construct" } |
| 34 |
do i = 0, 10 |
| 35 |
x = x + y + 1 |
| 36 |
end do |
| 37 |
|
| 38 |
!$omp parallel do simd linear (x: uval, step (y + 1)) ! { dg-error "LINEAR clause modifier other than VAL used on DO or SIMD construct" } |
| 39 |
do i = 0, 10 |
| 40 |
x = x + y + 1 |
| 41 |
end do |
| 42 |
end |
| 43 |
end |