diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/eof_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/eof_3.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/eof_3.f90 b/gcc/testsuite/gfortran.dg/eof_3.f90 new file mode 100644 index 000000000..f1d5098c7 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/eof_3.f90 @@ -0,0 +1,9 @@ +! { 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 |