OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c80f3a6bc2d8095ce1a7b48b46f524c84aaa30e4
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gfortran.dg
/
nearest_1.f90
1
! { dg-do run }
2
! { dg-options "-O0 -ffloat-store" }
3
! PR fortran/27021
4
! Original code submitted by Dominique d'Humieres
5
! Converted to Dejagnu for the testsuite by Steven G. Kargl
6
program chop
7
integer ix, iy
8
real o, t, td, tu, x, y
9
o = 1.
10
t = tiny(o)
11
td = nearest(t,-1.0)
12
x = td/2.0
13
y = nearest(tiny(o),-1.0)/2.0
14
ix = transfer(x,ix)
15
iy = transfer(y,iy)
16
if (ix /= iy) call abort
17
end program chop
18