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
This commit is contained in:
parent
fee42aaeb2
commit
007dccd795
2 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
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>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
! { 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
|
||||
|
|
Loading…
Add table
Reference in a new issue