URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [convert_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! Check for correct ordering of character variables with CONVERTprogram mainimplicit noneinteger, parameter :: two_swap = 2**25integer(kind=4) i,jcharacter(len=2) :: c,dopen(20,file="convert.dat",form="unformatted",convert="swap") ! { dg-warning "CONVERT" }write (20) "ab"close (20)open(20,file="convert.dat",form="unformatted",access="stream")read(20) i,c,jif (i .ne. two_swap .or. j .ne. two_swap .or. c .ne. "ab") call abortclose (20)open(20,file="convert.dat",form="unformatted",convert="swap") ! { dg-warning "CONVERT" }read (20) dclose (20,status="delete")if (d .ne. "ab") call abortend program main
