2 ! PR25835 Check that reading from a file that is at end-of-file does not
3 ! segfault or give error. Test case derived from example in PR from Dale Ranta.
4 ! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
5 integer data(2045) ! Exceed internal buffer size
7 open(unit
=11,status
='scratch', form
='unformatted')
9 read(11,end= 1000 )data
16 if (.not
. all(data == -1)) call abort()
17 read(11,end= 1002 )data