PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / nosigned_zero_3.f90
blobd1c34201c0c89a23b496fc4bca8b4e93c2141779
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") STOP 1
13 write(s, '(7f10.3)') y
14 if (trim(adjustl(s)) /= "-0.001") STOP 2
15 end program nosigned_zero_3