1! { dg-do run }
2! { dg-options "-std=legacy" }
3!
4! Verify that the D format uses 'D' as the exponent character.
5!   "     "    "  E   "     "   'E' "   "     "         "
6CHARACTER*10 c1, c2
7REAL(kind=8) r
8r = 1.0
9write(c1,"(e9.2)") r
10write(c2,"(d9.2)") r
11
12if (trim(adjustl(c1)) .ne. "0.10E+01") STOP 1
13if (trim(adjustl(c2)) .ne. "0.10D+01") STOP 2
14
15END
16