URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [real_const_3.f90] - Rev 816
Compare with Previous | Blame | View Log
!{ dg-run }!{ dg-options "-fno-range-check" }! PR19310 and PR19904, allow disabling range check during compile.! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>program mainreal, parameter :: zero=0, nan=0/zerocomplex :: z = (-0.1,-2.2)/(0.0,0.0)complex :: z2 = (0.1,1)/0complex :: z3 = (1e300, -2e-200)/1234e-325complex :: z4 = (1e-300, -2e-200)/1234e325real :: aa = exp(1000.0)b = 1/exp(1000.0)print *, aprint *, bprint *, -1.0/bprint *, b/0.0print *, 0.0/0.0print *, 1.0/-0.0print *, -2.0/0.0print *, 3.0/0.0print *, nanprint *, zprint *, z2print *, z3print *, z4end program main!{dg-output " +Infinity"!{dg-output " 0.000000"!{dg-output " -Infinity"!{dg-output " NaN"!{dg-output " NaN"!{dg-output " -Infinity"!{dg-output " -Infinity"!{dg-output " +Infinity"!{dg-output " NaN"!{dg-output " ( NaN, NaN)"!{dg-output " ( NaN, NaN)"!{dg-output " ( +Infinity, -Infinity)"!{dg-output " ( 0.000000 , 0.000000 )"
