2011-02-15 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_type_17.f03
blobf8f15f9eba133e9d8482a9cefdcd4001fa50e15d
1 ! { dg-do compile }
2 ! { dg-options "-fno-range-check -Wconversion" }
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-warning "conversion from" }
12 END PROGRAM test