diff options
author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2005-04-05 16:20:10 +0200 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2005-04-05 14:20:10 +0000 |
commit | 51e9d74cb85e9640ce3958bb89fab245f44752c7 (patch) | |
tree | f31db877f1ff6847fae7b39c30d10d28a04bed21 /gcc | |
parent | 9e9126f35508e7078eeeac4e81ea76a7a37fa1af (diff) | |
download | gcc-51e9d74cb85e9640ce3958bb89fab245f44752c7.zip gcc-51e9d74cb85e9640ce3958bb89fab245f44752c7.tar.gz gcc-51e9d74cb85e9640ce3958bb89fab245f44752c7.tar.bz2 |
re PR libfortran/20755 (gfortran - prints the same number with 1p4G12.3 two different ways)
PR libfortran/20755
* write.c (write_float): A G edit descriptor may locally change
the scale factor, but it needs to be restored afterwards.
* gfortran.dg/pr20755.f: New test.
From-SVN: r97627
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/pr20755.f | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 58d473c..3c67aa3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-04-05 Francois-Xavier Coudert <coudert@clipper.ens.fr> + + PR libfortran/20755 + * gfortran.dg/pr20755.f: New test. + 2005-04-05 Feng Wang <fengwang@nudt.edu.cn> * gfortran.dg/pr15959.f90: New test. diff --git a/gcc/testsuite/gfortran.dg/pr20755.f b/gcc/testsuite/gfortran.dg/pr20755.f new file mode 100644 index 0000000..07c72ae --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr20755.f @@ -0,0 +1,10 @@ +! PR libfortran/20755 +! { dg-do run } + character*30 s + + write (s,2000) 0.0, 0.02 + if (s .ne. " 0.00 2.000E-02") call abort + write (s,2000) 0.01, 0.02 + if (s .ne. " 1.000E-02 2.000E-02") call abort + 2000 format (1P2G12.3) + end |