Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/read_3.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! PR80727 Crash of runtime gfortran library during integer transformation ! Note: before the patch this was giving an incorrect EOR error on READ. program gfortran_710_io_bug character str*4 integer(4) :: i4 str ='' i = 256 write(str,fmt='(a)') i i = 0 read ( unit=str(1:4), fmt='(a)' ) i4 if (i4.ne.256) call abort end program gfortran_710_io_bug