URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [streamio_12.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! PR33985 Stream IO test with empty write, array writes, and reads.program streamtestimplicit nonecharacter(1) :: lf = char(10)character(1) :: tcharinteger :: i,j,kreal(kind=4), dimension(100,100) :: anarrayopen(10, file="teststream", access="stream", form="unformatted")anarray = 3.14159write(10) anarraywrite(10, pos=1) ! This is a way to position an unformatted fileanarray = 0.0read(10) anarrayanarray = abs(anarray - 3.14159)if (any(anarray.gt.0.00001)) call abort()close(10,status="delete")end program streamtest
