URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [nint_1.f90] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }
program nint_1
if (int(anint(8388609.0)) /= 8388609) call abort
if (int(anint(0.49999997)) /= 0) call abort
if (nint(8388609.0) /= 8388609) call abort
if (nint(0.49999997) /= 0) call abort
if (int(dnint(4503599627370497.0d0),8) /= 4503599627370497_8) call abort
if (int(dnint(0.49999999999999994d0)) /= 0) call abort
if (int(anint(-8388609.0)) /= -8388609) call abort
if (int(anint(-0.49999997)) /= 0) call abort
if (nint(-8388609.0) /= -8388609) call abort
if (nint(-0.49999997) /= 0) call abort
if (int(dnint(-4503599627370497.0d0),8) /= -4503599627370497_8) call abort
if (int(dnint(-0.49999999999999994d0)) /= 0) call abort
end program nint_1
Go to most recent revision | Compare with Previous | Blame | View Log