PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / no_range_check_2.f90
blob5e75edbca8fe2da14e5279af132ebdc0b06c078c
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) STOP 1
11 end