aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBud Davis <bdavis9659@comcast.net>2005-01-16 20:44:01 +0000
committerBud Davis <bdavis@gcc.gnu.org>2005-01-16 20:44:01 +0000
commitf53d3f931757427a50c22c4dc54b0f01e290fcbd (patch)
tree539669e5c3183f55dfd806145ccc55dc8d00b3ba /gcc
parent412dc870cb05c1f182f29455c9cda79ea4dac7fa (diff)
downloadgcc-f53d3f931757427a50c22c4dc54b0f01e290fcbd.zip
gcc-f53d3f931757427a50c22c4dc54b0f01e290fcbd.tar.gz
gcc-f53d3f931757427a50c22c4dc54b0f01e290fcbd.tar.bz2
re PR libfortran/18778 (ENDFILE is not functionnal)
2005-01-16 Bud Davis <bdavis9659@comcast.net> PR fortran/18778 * gfortran.dg/endfile_2.f90: New test. * io/transfer.c (us_read): no bytes available is not a runtime error. From-SVN: r93737
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/endfile_2.f9012
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ba894d9..b7a5f61 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-16 Bud Davis <bdavis9659@comcast.net>
+
+ PR fortran/18778
+ * gfortran.dg/endfile_2.f90: New test.
+
2005-01-16 Steven G. Kargl <kargls@comcast.net>
PR 19168
diff --git a/gcc/testsuite/gfortran.dg/endfile_2.f90 b/gcc/testsuite/gfortran.dg/endfile_2.f90
new file mode 100644
index 0000000..7f366f1
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/endfile_2.f90
@@ -0,0 +1,12 @@
+! { dg-do run }
+! pr18778 abort on endfile without opening unit
+ program test
+ implicit none
+ integer i
+ endfile(8)
+ rewind(8)
+ read(8,end=0023)i
+ call abort ! should never get here
+ stop
+ 0023 continue
+ end