view gcc/testsuite/gfortran.dg/eof_3.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do run }
! PR40714 A read hitting EOF should leave the unit structure in a correct state
program test
open(unit=32,status="scratch",access="sequential",form="unformatted")
read(32,end=100)
100 continue
backspace(32)
write (32)
end program test