URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [direct_io_4.f90] - Rev 816
Compare with Previous | Blame | View Log
! { dg-do run }! PR 23321 : Running off the end of a file was not detected with direct I/O.program mainimplicit noneinteger(kind=1) :: a, binteger :: ios, ia = 42open (unit=10,status="scratch",recl=1,access="direct")write(10,rec=1) aread (10,rec=2, iostat=ios) bif (ios == 0) call abortread (10, rec=82641, iostat=ios) b ! This used to cause a segfaultif (ios == 0) call abortread(10, rec=1, iostat=ios) bif (ios /= 0) call abortif (a /= b) call abortend program main
