arm: Add .type and .size to __gnu_cmse_nonsecure_call [PR115360]
[official-gcc.git] / gcc / testsuite / gfortran.dg / nearest_1.f90
blob4ba589c153db2da9a8b66a3a09e79406272dcb7f
1 ! { dg-do run }
2 ! { dg-options "-O0 -ffloat-store" }
3 ! { dg-add-options ieee }
4 ! PR fortran/27021
5 ! Original code submitted by Dominique d'Humieres
6 ! Converted to Dejagnu for the testsuite by Steven G. Kargl
7 program chop
8 integer ix, iy
9 real o, t, td, tu, x, y
10 o = 1.
11 t = tiny(o)
12 td = nearest(t,-1.0)
13 x = td/2.0
14 y = nearest(tiny(o),-1.0)/2.0
15 ix = transfer(x,ix)
16 iy = transfer(y,iy)
17 if (ix /= iy) STOP 1
18 end program chop