Debian Codegraph @

gcc/testsuite/gfortran.dg/nosigned_zero_3.f90

raw
1 ! { dg-do run }
2 ! { dg-options "-fno-sign-zero" }
3 !
4 ! PR fortran/55539
5 !
6 program nosigned_zero_3
7 implicit none
8 character(len=20) :: s
9 real(4) :: x = -1.2e-3
10 real(8) :: y = -1.2e-3
11 write(s,'(7f10.3)') x
12 if (trim(adjustl(s)) /= "-0.001") STOP 1
13 write(s, '(7f10.3)') y
14 if (trim(adjustl(s)) /= "-0.001") STOP 2
15 end program nosigned_zero_3