Commit ada22a82 by Jerry DeLisle

re PR libfortran/27575 (gfortran - does not generate error when trying to read too much data)

2006-05-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/27575
	* gfortran.dg/read_eof_4.f90:  New test.

From-SVN: r113838
parent cacf2b96
2006-05-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/27575
* gfortran.dg/read_eof_4.f90: New test.
2006-05-16 Richard Guenther <rguenther@suse.de> 2006-05-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/22303 PR tree-optimization/22303
! { dg-do run }
! PR 27575 : This test checks the error checking for end of file condition.
! Derived from test case in PR.
! Submitted by Jerry DeLisle <jvdelisle@verizon.net>.
program test
integer i1,i2,i3
open(unit=11,form='unformatted')
write(11)i1, i2
close(11,status='keep')
open(unit=11,form='unformatted')
read(11, eND=100) i1, i2, i3
call abort()
100 read(11, end=110) i3
call abort()
110 close(11,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