2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / nosigned_zero_3.f90
blob3f0f7101f26b862a72c90078491a359330c59f60
1 ! { dg-do run }
2 ! { dg-options "-fno-sign-zero" }
4 ! PR fortran/55539
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") call abort
13 write(s, '(7f10.3)') y
14 if (trim(adjustl(s)) /= "-0.001") call abort
15 end program nosigned_zero_3