aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/e_d_fmt.f90
blob: 1abfa6105ea547a9bca6bcac9677ff8d8cabfb18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do run }
! Verify that the D format uses 'D' as the exponent character.
!   "     "    "  E   "     "   'E' "   "     "         " 
CHARACTER*10 c1, c2
REAL*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