1 ! { dg-do run { target fd_truncate } }
2 ! PR25697 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>
9 open(unit
=11,status
='scratch',form
='unformatted')
11 read(11,end= 1000 )data
19 read(11,end= 1001 )data
21 read(11,end= 1002 )data
24 if (.not
. all(data == -3)) call abort()