Commit 66115309 by Jerry DeLisle

re PR libfortran/47567 (Wrong output for small absolute values with F editing)

2011-02-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47567
	* gfortran.dg/fmt_f0_1.f90: Update test.
	Fix previous log entry.

From-SVN: r170319
parent ffe89a28
2011-02-19 Paul Thomas <pault@gcc.gnu.org> 2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/47348 PR libgfortran/47567
* trans-array.c (get_array_ctor_all_strlen): Move up in file. * gfortran.dg/fmt_f0_1.f90: Update test.
(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.
2011-02-19 Paul Thomas <pault@gcc.gnu.org> 2011-02-19 Paul Thomas <pault@gcc.gnu.org>
......
...@@ -14,4 +14,36 @@ ...@@ -14,4 +14,36 @@
if (str.ne."0.000") call abort if (str.ne."0.000") call abort
write (str,'(f0.4)') x write (str,'(f0.4)') x
if (str.ne."0.0000") call abort 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 END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment