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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
fmt_zero_digits.f90
blob
adb307155ec44965662c13b3e8a4e44692a197f6
1
! { dg-do run }
2
! Verify that when decimal precision is zero, no error.
3
! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>
4
program
test
5
character
(
20
) ::
astr
6
50
FORMAT
(
d20
.
0
)
7
astr
=
""
8
write
(
astr
,
50
) -
8.0
D0
9
if
(
astr
.
ne
.
" -0.D+01"
)
call
abort
()
10
write
(
astr
,
50
)
8.0
D0
11
if
(
astr
.
ne
.
" 0.D+01"
)
call
abort
()
12
end program
test