repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
fraction.f90
blob
7a981118e0aa0c80fc380b6672606a46e633f8d5
1
! { dg-do run }
2
!
3
! Test for pr52413
4
!
5
6
program
test_frac
7
8
real
::
y
9
y
=
fraction
(-
2.0
)
10
if
(
fraction
(-
2.0
) /= -
0.5
)
call
abort
()
11
if
(
fraction
(-
0.0
) /=
0.0
)
call
abort
()
12
if
(
sign
(
1.0
,
fraction
(-
0.0
)) /= -
1.0
)
call
abort
()
13
if
(
fraction
(-
2.0
_8
) /= -
0.5
)
call
abort
()
14
15
end program
test_frac