OSDN Git Service

2008-10-13 Jerry DeLisle <jvdelisle@gcc.gnu.org
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Oct 2008 01:53:35 +0000 (01:53 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Oct 2008 01:53:35 +0000 (01:53 +0000)
PR libfortran/37083
* gfortran.dg/list_read_9.f90: New test.
* gfortran.dg/arrayio_8.f90: Fix some typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141102 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 592dc58..32773af 100644 (file)
@@ -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.
index 7448221..9dc81f8 100644 (file)
@@ -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 (file)
index 0000000..2021859
--- /dev/null
@@ -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