Commit 88de9dd0 by Jerry DeLisle

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
parent 724cdffe
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.
......
! { 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
......
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment