blob: 4b45c4c8e4f213e26cba02fe38c869dfec09e9ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
! { dg-do run }
! { dg-options "-fno-range-check" }
! PR36515 Integer read a value overflow for an invalid integer.
! This tests that -fno-range-check allows this legacy behavior at runtime.
program int_range
character(25) :: inputline = "-2147483648"
integer*4 smallest
read(inputline,100) smallest
100 format(1i11)
if (smallest.ne.-2147483648) call abort
end
|