summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/array_constructor_type_17.f03
blob: 6e009e12547b6e1de2f3e16ce0c49b1838c2e1fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
! { dg-options "-fno-range-check -Wconversion" }
! PR fortran/27997
!
! Range check on array-constructors with typespec.

PROGRAM test
  IMPLICIT NONE

  INTEGER(KIND=4) :: arr(1)
  arr = (/ INTEGER(KIND=4) :: HUGE(0_8) /) ! { dg-warning "Conversion" }
END PROGRAM test