]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/40714 (Fortran runtime error: Invalid argument)
authorJanne Blomqvist <jb@gcc.gnu.org>
Sun, 19 Jul 2009 23:26:20 +0000 (02:26 +0300)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 19 Jul 2009 23:26:20 +0000 (23:26 +0000)
2009-07-19  Janne Blomqvist  <jb@gcc.gnu.org>
    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/40714
* gfortran.dg/eof_3.f90: New test.

Co-Authored-By: Jerry DeLisle <jvdelisle@gcc.gnu.org>
From-SVN: r149797

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/eof_3.f90 [new file with mode: 0644]

index a9cb57bc17211c6a5f81435384f6c094b0d08516..187dae19618e6fa158dce39940ea085698a27de3 100644 (file)
@@ -1,3 +1,9 @@
+2009-07-19  Janne Blomqvist  <jb@gcc.gnu.org>
+           Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/40714
+       * gfortran.dg/eof_3.f90: New test.
+
 2009-07-18  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/40727
diff --git a/gcc/testsuite/gfortran.dg/eof_3.f90 b/gcc/testsuite/gfortran.dg/eof_3.f90
new file mode 100644 (file)
index 0000000..83d6529
--- /dev/null
@@ -0,0 +1,8 @@
+! { 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
+write (32)
+end program test