pr17706.f90

来自「用于进行gcc测试」· F90 代码 · 共 26 行

F90
26
字号
! { 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 pr17706  implicit none  character(len=10) :: s  character(len=10), parameter :: x = "xxxxxxxxxx"  real, parameter :: small = -0.0001  s = x  write (s, '(F4.1)') small  ! The plus is optional.  We choose not to display it.  if (s .ne. " 0.0") call abort  s = x  write (s, '(SS,F4.1)') small  if (s .ne. " 0.0") call abort  s = x  write (s, '(SP,F4.1)') small  if (s .ne. "+0.0") call abortend program

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?