diff options
author | Paul Brook <paul@codesourcery.com> | 2004-09-02 01:33:01 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2004-09-02 01:33:01 +0000 |
commit | d809264e863ffbf312af0e23bd30799ffa999096 (patch) | |
tree | f174d83e96b96dfdc5e9932f24caad92c63d9fe1 /gcc/testsuite/gfortran.dg | |
parent | 130d5426f03f01226b351b31ccf6fffbd85b1410 (diff) | |
download | gcc-d809264e863ffbf312af0e23bd30799ffa999096.zip gcc-d809264e863ffbf312af0e23bd30799ffa999096.tar.gz gcc-d809264e863ffbf312af0e23bd30799ffa999096.tar.bz2 |
format.c (parse_format_list): Set repeat count for P descriptors.
* io/format.c (parse_format_list): Set repeat count for P descriptors.
* write.c (output_float): Fix condition. Correctly handle nonzero
scale factor.
testsuite/
* gfortran.dg/edit_real_1.f90: Add new tests.
From-SVN: r86952
Diffstat (limited to 'gcc/testsuite/gfortran.dg')
-rw-r--r-- | gcc/testsuite/gfortran.dg/edit_real_1.f90 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/edit_real_1.f90 b/gcc/testsuite/gfortran.dg/edit_real_1.f90 index 3ecd4ff..dc8eee1 100644 --- a/gcc/testsuite/gfortran.dg/edit_real_1.f90 +++ b/gcc/testsuite/gfortran.dg/edit_real_1.f90 @@ -62,5 +62,13 @@ program edit_real_1 s = x write (s, '(EN15.3,A)') 999.9999, "z" if (s .ne. " 1.000E+03z") call abort + ! E format, positive scale factor + s = x + write (s, '(2PE10.4,A)') 1.2345, "z" + if (s .ne. '12.345E-01z') call abort + ! E format, negative scale factor + s = x + write (s, '(-2PE10.4,A)') 1.25, "z" + if (s .ne. '0.0013E+03z') call abort end |