URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [pr17706.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fno-sign-zero" }! PR17706! this is a libgfortran test! output value -0.00 is not standard compliant! derived from NIST F77 test FM406, with extra bits added.program pr17706implicit nonecharacter(len=10) :: scharacter(len=10), parameter :: x = "xxxxxxxxxx"real, parameter :: small = -0.0001s = xwrite (s, '(F4.1)') small! The plus is optional. We choose not to display it.if (s .ne. " 0.0") call aborts = xwrite (s, '(SS,F4.1)') smallif (s .ne. " 0.0") call aborts = xwrite (s, '(SP,F4.1)') smallif (s .ne. "+0.0") call abortend program
