repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
e_d_fmt.f90
blob
f2a3a5fc553e454298ab471767d20adb630dc4a9
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' " " " "
6
CHARACTER
*
10
c1
,
c2
7
REAL
(
kind
=
8
)
r
8
r
=
1.0
9
write
(
c1
,
"(e9.2)"
)
r
10
write
(
c2
,
"(d9.2)"
)
r
11
12
if
(
trim
(
adjustl
(
c1
)) .
ne
.
"0.10E+01"
)
call
abort
()
13
if
(
trim
(
adjustl
(
c2
)) .
ne
.
"0.10D+01"
)
call
abort
()
14
15
END