diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2009-03-09 04:54:50 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2009-03-09 04:54:50 +0000 |
commit | 1915e66b17851ed9fceaec8aa9702b2910f47b6f (patch) | |
tree | bf7626edf8a7f0d825917dc8d1a806924301e9d5 /gcc | |
parent | d53cb9ea605018b59e7456befb770db470759cb3 (diff) | |
download | gcc-1915e66b17851ed9fceaec8aa9702b2910f47b6f.zip gcc-1915e66b17851ed9fceaec8aa9702b2910f47b6f.tar.gz gcc-1915e66b17851ed9fceaec8aa9702b2910f47b6f.tar.bz2 |
re PR libfortran/39402 (gfortran 20090306: internal write of 0.0 with F0.3 gives **)
2009-03-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/39402
* gfortran.dg/fmt_f0_1.f90: New test.
From-SVN: r144719
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/fmt_f0_1.f90 | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3d44d64..135a0b4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-03-08 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libfortran/39402 + * gfortran.dg/fmt_f0_1.f90: New test. + 2009-03-08 H.J. Lu <hongjiu.lu@intel.com> PR c++/39060 diff --git a/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 b/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 new file mode 100644 index 0000000..166846b --- /dev/null +++ b/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 @@ -0,0 +1,17 @@ +! { dg-do run ) +! PR39304 write of 0.0 with F0.3 gives ** +! Test case developed from case provided by reporter. + REAL :: x + CHARACTER(80) :: str + x = 0.0 + write (str,'(f0.0)') x + if (str.ne."0.") call abort + write (str,'(f0.1)') x + if (str.ne."0.0") call abort + write (str,'(f0.2)') x + if (str.ne."0.00") call abort + write (str,'(f0.3)') x + if (str.ne."0.000") call abort + write (str,'(f0.4)') x + if (str.ne."0.0000") call abort + END |