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/] [fmt_zero_digits.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! Verify that when decimal precision is zero, error error given except with 1P.! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>! Modified for fix to PR35036program testimplicit nonecharacter(20) :: astrinteger :: istat50 FORMAT (1PD20.0)astr = ""write(astr,50) -8.0D0if (astr.ne." -8.D+00") call abortwrite(astr,50) 8.0D0if (astr.ne." 8.D+00") call abortwrite(astr, '(E15.0)', iostat=istat) 1e5if (istat /= 5006) call abortwrite(astr, '(D15.0)', iostat=istat) 1e5if (istat /= 5006) call abortwrite(astr, '(G15.0)', iostat=istat) 1e5if (istat /= 5006) call abortwrite(astr, '(2PE15.0)', iostat=istat) 1e5if (istat /= 5006) call abortwrite(astr, '(0PE15.0)', iostat=istat) 1e5if (istat /= 5006) call abortwrite(astr, '(1PE15.0)', iostat=istat) 1e5if (istat /= 0) call abortwrite(astr, '(F15.0)', iostat=istat) 1e5if (astr.ne." 100000.") call abortif (istat /= 0) call abortend program test
