Commit 8e95a674 by Jerry DeLisle

re PR libfortran/77393 (Revision r237735 changed the behavior of F0.0)

2016-08-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/77393
	* gfortran.dg/fmt_f0_2.f90: New test.

From-SVN: r239901
parent d7756960
2016-08-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/77393
* gfortran.dg/fmt_f0_2.f90: New test.
2016-08-31 Marc Glisse <marc.glisse@inria.fr> 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
* gcc.target/i386/pr59539-2.c: Adapt options. * gcc.target/i386/pr59539-2.c: Adapt options.
......
! { dg-do run }
! PR77393
program testbigf0 ! Can enormous numbers be printed with F0.0 format?
implicit none
character(10000) :: str
write(str, "(f0.0)") -huge(1.0)
if (len(trim(str)).lt.41) error stop "FAILED AT LINE 7"
write(str, "(f0.0)") -huge(1.0_8)
if (len(trim(str)).lt.311) error stop "FAILED AT LINE 9"
write(str, "(f0.0)") -huge(1.0_10)
if (len(trim(str)).lt.4935) error stop "FAILED AT LINE 11"
write(str, "(f0.10)") -huge(1.0_16)
if (len(trim(str)).lt.4945) error stop "FAILED AT LINE 13"
end program testbigf0
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