aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/array_constructor_type_11.f03
blob: e27515c7d7a875a36adf7877b2e76838b446cb66 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
!
! PR fortran/27997
!
! Empty array constructor with typespec.
!
 integer :: i(3)
 i(3:2) = (/ integer :: /)
 if (len((/ character(5) :: /)) /= 5) call abort()
 if (kind((/ integer(8) :: /)) /= 8) call abort()
end