OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [e_d_fmt.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do run }
! Verify that the D format uses 'D' as the exponent character.
!   "     "    "  E   "     "   'E' "   "     "         " 
CHARACTER*10 c1, c2
REAL(kind=8) r
r = 1.0
write(c1,"(e9.2)") r
write(c2,"(d9.2)") r

if (trim(adjustl(c1)) .ne. "0.10E+01") call abort()
if (trim(adjustl(c2)) .ne. "0.10D+01") call abort()

END

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.