Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/read_x_eof.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 } ! PR43265 No EOF condition if reading with '(x)' from an empty file ! Test case from the reporter. program pr43265 implicit none integer::i open(23,status="scratch") write(23,'(a)') "Line 1" write(23,'(a)') "Line 2" write(23,'(a)') "Line 3" rewind(23) do i=1,10 read(23,'(1x)',end=12) enddo 12 if (i.ne.4) call abort end