| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-fopenmp" } |
| 3 |
|
| 4 |
module m |
| 5 |
implicit none (type, external) |
| 6 |
|
| 7 |
integer i |
| 8 |
|
| 9 |
interface |
| 10 |
integer function s1 (x, y, z) |
| 11 |
integer, value :: x, y, z |
| 12 |
!$omp declare simd linear (x : val, step (1), val) ! { dg-error "Multiple 'linear' modifiers specified" } |
| 13 |
end |
| 14 |
|
| 15 |
integer function s2 (x, y, z) |
| 16 |
integer, value :: x, y, z |
| 17 |
!$omp declare simd linear (x : val, step (1), step(2)) ! { dg-error "Multiple 'step' modifiers specified" } |
| 18 |
end |
| 19 |
|
| 20 |
integer function s3 (x, y, z) |
| 21 |
integer, value :: x, y, z |
| 22 |
!$omp declare simd linear (x : val, ref, step(2)) ! { dg-error "Multiple 'linear' modifiers specified" } |
| 23 |
end |
| 24 |
|
| 25 |
end interface |
| 26 |
|
| 27 |
end module |