reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git] / gcc / testsuite / gfortran.dg / fraction.f90
blob89aa7a15ca24161aaee5f44009029035e25c2174
1 ! { dg-do run }
3 ! Test for pr52413
6 program test_frac
8 real :: y
9 y=fraction (-2.0)
10 if (fraction (-2.0) /= -0.5) STOP 1
11 if (fraction (-0.0) /= 0.0) STOP 2
12 if (sign(1.0, fraction(-0.0)) /= -1.0) STOP 3
13 if (fraction (-2.0_8) /= -0.5) STOP 4
15 end program test_frac