Commit 25b86498 by Jerry DeLisle

re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)

2009-10-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/35862
	* gfortran.dg/round_2.f03: New test.

From-SVN: r152484
parent 0e8fc185
2009-10-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/35862
* gfortran.dg/round_2.f03: New test.
2009-10-05 Jakub Jelinek <jakub@redhat.com> 2009-10-05 Jakub Jelinek <jakub@redhat.com>
PR debug/41558 PR debug/41558
......
! { dg-do run }
! PR35962 Implement F2003 rounding modes.
! Test case prepared by Jerry Delisle <jvdelisle@gcc.gnu.org>
character(64) :: line
write(line, '(RN, 4F10.3)') 0.0625_10, 0.1875_10
if (line.ne." 0.062 0.188") call abort
write(line, '(RN, 4F10.2)') 0.125_10, 0.375_10, 1.125_10, 1.375_10
if (line.ne." 0.12 0.38 1.12 1.38") call abort
write(line, '(RN, 4F10.1)') 0.25_10, 0.75_10, 1.25_10, 1.75_10
if (line.ne." 0.2 0.8 1.2 1.8") call abort
write(line, '(RN, 4F10.0)') 0.5_10, 1.5_10, 2.5_10, 3.5_10
if (line.ne." 0. 2. 2. 4.") call abort
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