OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2006-09-29 Steven G. Kargl <kargl@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gfortran.dg
/
nearest_1.f90
1
! { dg-do run }
2
! { dg-options "-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
real o, t, td, tu, x, y
8
o = 1.
9
t = tiny(o)
10
td = nearest(t,-1.0)
11
x = td/2.0
12
y = nearest(tiny(o),-1.0)/2.0
13
if (abs(x - y) /= 0.) call abort
14
end program chop
15