2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / no_range_check_2.f90
blob4b45c4c8e4f213e26cba02fe38c869dfec09e9ce
1 ! { dg-do run }
2 ! { dg-options "-fno-range-check" }
3 ! PR36515 Integer read a value overflow for an invalid integer.
4 ! This tests that -fno-range-check allows this legacy behavior at runtime.
5 program int_range
6 character(25) :: inputline = "-2147483648"
7 integer*4 smallest
8 read(inputline,100) smallest
9 100 format(1i11)
10 if (smallest.ne.-2147483648) call abort
11 end