blob: e487bec8ff6424989dab457fff2aad3762ded033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
! { 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
|