aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/linear-7.f90
blob: 5e763a92ca61ea0b6cec3d020a70822ff580670f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
! { dg-do compile }
! { dg-options "-fopenmp" }

module m
  implicit none (type, external)

  integer i

  interface
    integer function s1 (x, y, z)
      integer, value :: x, y, z
      !$omp declare simd linear (x : val, step (1), val)  ! { dg-error "Multiple 'linear' modifiers specified" }
    end

    integer function s2 (x, y, z)
      integer, value :: x, y, z
      !$omp declare simd linear (x : val, step (1), step(2))  ! { dg-error "Multiple 'step' modifiers specified" }
    end

    integer function s3 (x, y, z)
      integer, value :: x, y, z
      !$omp declare simd linear (x : val, ref, step(2))  ! { dg-error "Multiple 'linear' modifiers specified" }
    end

  end interface

end module