URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [io_real_boz.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! Test reading/writing of integer, real and character BOZ! non-integer BOZ are not valid in standard Fortran, however.! PR fortran/29625program real_bozimplicit noneinteger(4) :: i,i2real(4) :: r,r2complex(4) :: z,z2character :: c,c2character(len=100) :: str,fmti = 43r = 325.56z = cmplx(14.456, 345342.456)c ='g'write(str,'(b0)') iwrite(fmt,'(a,i0,a)') '(b',len_trim(str),')'read(str,fmt) i2if(i /= i2) call abort()write(str,'(o0)') iwrite(fmt,'(a,i0,a)') '(o',len_trim(str),')'read(str,fmt) i2if(i /= i2) call abort()write(str,'(z0)') iwrite(fmt,'(a,i0,a)') '(z',len_trim(str),')'read(str,fmt) i2if(i /= i2) call abort()write(str,'(b0)') rwrite(fmt,'(a,i0,a)') '(b',len_trim(str),')'read(str,fmt) r2if(r /= r2) call abort()write(str,'(o0)') rwrite(fmt,'(a,i0,a)') '(o',len_trim(str),')'read(str,fmt) r2if(r /= r2) call abort()write(str,'(z0)') rwrite(fmt,'(a,i0,a)') '(z',len_trim(str),')'read(str,fmt) r2if(r /= r2) call abort()write(str,'(b0)') cwrite(fmt,'(a,i0,a)') '(b',len_trim(str),')'read(str,fmt) c2if(c /= c2) call abort()write(str,'(o0)') cwrite(fmt,'(a,i0,a)') '(o',len_trim(str),')'read(str,fmt) c2if(c /= c2) call abort()write(str,'(z0)') cwrite(fmt,'(a,i0,a)') '(z',len_trim(str),')'read(str,fmt) c2if(c /= c2) call abort()end program real_boz
