PR rtl-optimization/82913
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_type_18.f03
blobd88b3227c4db75a1f7f005d9c5f35563b3dbe5a1
1 ! { dg-do compile }
2 ! { dg-options "-frange-check" }
3 ! PR fortran/27997
5 ! Range check on array-constructors with typespec.
7 PROGRAM test
8   IMPLICIT NONE
10   INTEGER(KIND=4) :: arr(1)
11   arr = (/ INTEGER(KIND=4) :: HUGE(0_8) /) ! { dg-error "overflow converting" }
12 END PROGRAM test