Commit 007dccd7 by Jerry DeLisle

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

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

	PR libgfortran/35862
	* gfortran.dg/round_2.f03: Eliminate possible compile error. Use max
	function correctly.

From-SVN: r152632
parent fee42aae
2009-10-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/35862
* gfortran.dg/round_2.f03: Eliminate possible compile error.
* gfortran.dg/round_2.f03: Eliminate possible compile error. Use max
function correctly.
2009-10-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
......
! { dg-do run }
! PR35962 Implement F2003 rounding modes.
! Test case prepared by Jerry Delisle <jvdelisle@gcc.gnu.org>
integer,parameter :: j = selected_real_kind (max(4,precision (0.0_4) + 1))
integer,parameter :: k = selected_real_kind (max(4,precision (0.0_8) + 1))
integer,parameter :: j = max(4, selected_real_kind (precision (0.0_4) + 1))
integer,parameter :: k = max(4, selected_real_kind (precision (0.0_8) + 1))
character(64) :: line
write(line, '(RN, 4F10.3)') 0.0625_j, 0.1875_j
if (line.ne." 0.062 0.188") call abort
......
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