summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/initialization_20.f90
blob: 6af1a00a45d61b7758108ee16a046eb47220e6b9 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! Test for PR19925
!
program pr19925
  implicit none
  integer j
  integer, parameter :: n = 100000
  integer, parameter :: i(n)=(/(j,j=1,n)/) ! { dg-error "number of elements" }
  print *, i(5) ! { dg-error "has no IMPLICIT type" }
end program pr19925