2011-05-23 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / aint_anint_1.f90
blob179748c11909a41ded073d59b050cbfdb5aa3db4
1 program aint_anint_1
3 implicit none
5 real(4) :: r = 42.7, r1, r2
6 real(8) :: s = 42.7D0, s1, s2
8 r1 = aint(r)
9 r2 = aint(r,kind=8)
10 if (abs(r1 - r2) > 0.1) call abort()
12 r1 = anint(r)
13 r2 = anint(r,kind=8)
14 if (abs(r1 - r2) > 0.1) call abort()
16 s1 = aint(s)
17 s2 = aint(s, kind=4)
18 if (abs(s1 - s2) > 0.1) call abort()
20 s1 = anint(s)
21 s2 = anint(s, kind=4)
22 if (abs(s1 - s2) > 0.1) call abort()
25 end program aint_anint_1