Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/no_range_check_2.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { 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) STOP 1 end