aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2008-10-14 01:53:35 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2008-10-14 01:53:35 +0000
commit88de9dd0236282cc67952ace2233f2a2be054c90 (patch)
tree14c307df8076de9a5e58bf66f7f11df9254dd263 /gcc
parent724cdffe5c30ba0f922c27c1bd2e7ed71e40201c (diff)
downloadgcc-88de9dd0236282cc67952ace2233f2a2be054c90.zip
gcc-88de9dd0236282cc67952ace2233f2a2be054c90.tar.gz
gcc-88de9dd0236282cc67952ace2233f2a2be054c90.tar.bz2
re PR fortran/37083 (Formatted read of line without trailing new-line fails)
2008-10-13 Jerry DeLisle <jvdelisle@gcc.gnu.org PR libfortran/37083 * gfortran.dg/list_read_9.f90: New test. * gfortran.dg/arrayio_8.f90: Fix some typos. From-SVN: r141102
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gfortran.dg/arrayio_8.f902
-rw-r--r--gcc/testsuite/gfortran.dg/list_read_9.f9013
3 files changed, 20 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 592dc58..32773af 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-13 Jerry DeLisle <jvdelisle@gcc.gnu.org
+
+ PR libfortran/37083
+ * gfortran.dg/list_read_9.f90: New test.
+ * gfortran.dg/arrayio_8.f90: Fix some typos.
+
2008-10-13 Kai Tietz <kai.tietz@onevision.com>
* testsuite/gcc.dg/format/ms-format1.c: New.
diff --git a/gcc/testsuite/gfortran.dg/arrayio_8.f90 b/gcc/testsuite/gfortran.dg/arrayio_8.f90
index 7448221..9dc81f8 100644
--- a/gcc/testsuite/gfortran.dg/arrayio_8.f90
+++ b/gcc/testsuite/gfortran.dg/arrayio_8.f90
@@ -1,6 +1,6 @@
! { dg-do run }
! PR28339, This test checks that internal unit array I/O handles a full record
-! and and advances to th enext record properly. Test case derived from PR
+! and advances to the next record properly. Test case derived from PR
! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>
program main
integer i
diff --git a/gcc/testsuite/gfortran.dg/list_read_9.f90 b/gcc/testsuite/gfortran.dg/list_read_9.f90
new file mode 100644
index 0000000..2021859
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/list_read_9.f90
@@ -0,0 +1,13 @@
+! { dg-do run { target fd_truncate } }
+! pr37083 formatted read of line without trailing new-line fails
+real :: a, b, c
+open(unit=10,file="atest",access='stream',form='unformatted',&
+ & status="replace")
+write(10) '1.2'//achar(10)//'2.2'//achar(10)//'3.'
+call fputc(10,'3')
+close(10, status="keep")
+open(unit=10,file="atest",form='formatted',status="old")
+read(10,*) a, b, c
+if (a.ne.1.2 .or. b.ne.2.2 .or. c.ne.3.3) call abort
+close(10, status="delete")
+end