]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/58324 (Bogus END-of-line error with list-directed I/O of file without...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 15 Mar 2014 15:15:22 +0000 (15:15 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 15 Mar 2014 15:15:22 +0000 (15:15 +0000)
2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/58324
* gfortran.dg/list_read_12.f90: New test.

From-SVN: r208592

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

index d444e4288cc4ff09e0183758b46ffefced8bb3ce..abd9579f805480455226aac70d449b1886ed2a5b 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>
+
+       PR libfortran/58324
+       * gfortran.dg/list_read_12.f90: New test.
+
 2014-03-15  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/55207
diff --git a/gcc/testsuite/gfortran.dg/list_read_12.f90 b/gcc/testsuite/gfortran.dg/list_read_12.f90
new file mode 100644 (file)
index 0000000..811ef15
--- /dev/null
@@ -0,0 +1,11 @@
+! { dg-do run }
+! PR58324 Bogus end of file condition
+integer :: i, ios
+open(99, access='stream', form='unformatted')
+write(99) "5 a"
+close(99)
+
+open(99, access='sequential', form='formatted')
+read(99, *, iostat=ios) i
+if (ios /= 0) call abort
+end