Commit 2f94c68c by Jerry DeLisle

re PR libfortran/25598 (gfortran - Fortran runtime error: Invalid argument)

2005-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/25598
	* gfortran.dg/backspace_3.f: New test.
	* gfortran.dg/backspace_4.f: New test.

From-SVN: r109406
parent 9696b225
2005-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2005-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/25598
* gfortran.dg/backspace_3.f: New test.
* gfortran.dg/backspace_4.f: New test.
2005-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268 PR fortran/24268
* gfortran.dg/fmt_white.f: Update test. * gfortran.dg/fmt_white.f: Update test.
! { dg-do run }
! PR25598 Error on repeated backspaces.
! Derived from example given in PR by Dale Ranta
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
integer data
data=-1
open(unit=11,status='scratch',form='unformatted')
write(11)data
read(11,end= 1000 )data
call abort()
1000 continue
backspace 11
backspace 11
backspace 11
read(11,end= 1001 )data
1001 continue
if (data.ne.-1) call abort
close(11)
end
! { dg-do run }
! PR25598 Error on repeated backspaces.
! Derived from example given in PR by Dale Ranta
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
integer data
data=-1
open(unit=11,status='scratch',form='unformatted')
write(11)data
read(11,end= 1000 )data
call abort()
1000 continue
backspace 11
backspace 11
read(11,end= 1001 )data
1001 continue
if (data.ne.-1) call abort
close(11)
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