aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/parameter_1.f90
blob: 8a8af73851d99fb9ecb4c61d008140125c76efcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! Program to test array parameter variables.
program parameter_1
  implicit none
  integer i
  INTEGER, PARAMETER :: ii(10) = (/ (I,I=1,10) /)
  REAL, PARAMETER    :: rr(10) = ii

  do i = 1, 10
    if (ii(i) /= i) call abort()
    if (rr(i) /= i) call abort()
  end do
end program parameter_1