diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2011-02-19 15:21:05 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2011-02-19 15:21:05 +0000 |
commit | 5119afdecb8466be0812e64a11bfdb17424d7494 (patch) | |
tree | 412465b02e08584dc9cb3fe6e46991bff08adb06 | |
parent | 5b2dbcc5a2fef19cfc93ad9001162ed29f14571a (diff) |
2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/47567
* gfortran.dg/fmt_f0_1.f90: Update test.
Fix previous log entry.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@170319 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/fmt_f0_1.f90 | 32 |
2 files changed, 35 insertions, 8 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f1076f6ffdc..fd5066b204e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,12 +1,7 @@ -2011-02-19 Paul Thomas <pault@gcc.gnu.org> +2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org> - PR fortran/47348 - * trans-array.c (get_array_ctor_all_strlen): Move up in file. - (get_array_ctor_var_strlen): Add block dummy and add call to - get_array_ctor_all_strlen instead of giving up on substrings. - Call gcc_unreachable for default case. - (get_array_ctor_strlen): Add extra argument to in call to - get_array_ctor_var_strlen. + PR libgfortran/47567 + * gfortran.dg/fmt_f0_1.f90: Update test. 2011-02-19 Paul Thomas <pault@gcc.gnu.org> diff --git a/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 b/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 index 166846b87fe..e4e92b16725 100644 --- a/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 +++ b/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 @@ -14,4 +14,36 @@ if (str.ne."0.000") call abort write (str,'(f0.4)') x if (str.ne."0.0000") call abort + write (str,'(F0.0)') 0.0 + if (str.ne."0.") call abort + write (str,'(F0.0)') 0.001 + if (str.ne."0.") call abort + write (str,'(F0.0)') 0.01 + if (str.ne."0.") call abort + write (str,'(F0.0)') 0.1 + if (str.ne."0.") call abort + write (str,'(F1.0)') -0.0 + if (str.ne."0") call abort + write (str,'(F1.0)') 0.001 + if (str.ne."*") call abort + write (str,'(F1.0)') 0.01 + if (str.ne."*") call abort + write (str,'(F1.0)') 0.1 + if (str.ne."*") call abort + write (str,'(F2.0)') -0.001 + if (str.ne."*") call abort + write (str,'(F2.0)') -0.01 + if (str.ne."**") call abort + write (str,'(F2.0)') -0.1 + if (str.ne."**") call abort + write (str,'(F0.2)') 0.0 + if (str.ne.".00") call abort + write (str,'(F0.0)') -0.0 + if (str.ne."-0.") call abort + write (str,'(F0.1)') -0.0 + if (str.ne."-.0") call abort + write (str,'(F0.2)') -0.0 + if (str.ne."-.00") call abort + write (str,'(F0.3)') -0.0 + if (str.ne."-.000") call abort END |