summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/array_constructor_33.f90
blob: 7a7c6fa2e2fe437d6b6156ded719a9c598c2ee80 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR20923 gfortran slow for large array constructors.
! Test case prepared from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>
program sel
    implicit none
    integer(kind=4),parameter      :: n=1000
    integer(kind=4)                :: i,j
    real(kind=4),dimension(n*n)    :: vect
    vect(:) = (/ ((( (i+j+3)),i=1,n),j=1,n) /)
end