aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/array_constructor_31.f90
blob: 02936340ffcc3bcd2a2eac33c9ca0b94c2ce431a (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! Test the fix for pr40018 in which the elements in the array
! constructor would be of default type and this would cause an
! ICE in the backend because of the type mistmatch with 'i'.
!
! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
!
  integer(kind=8) :: i
  write(*,*) [(i, i = 1, 10)]
  end