diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/fmt_f0_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/fmt_f0_1.f90 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 b/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 index 166846b87fe..e4e92b16725 100644 --- a/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 +++ b/gcc/testsuite/gfortran.dg/fmt_f0_1.f90 @@ -14,4 +14,36 @@ if (str.ne."0.000") call abort write (str,'(f0.4)') x if (str.ne."0.0000") call abort + write (str,'(F0.0)') 0.0 + if (str.ne."0.") call abort + write (str,'(F0.0)') 0.001 + if (str.ne."0.") call abort + write (str,'(F0.0)') 0.01 + if (str.ne."0.") call abort + write (str,'(F0.0)') 0.1 + if (str.ne."0.") call abort + write (str,'(F1.0)') -0.0 + if (str.ne."0") call abort + write (str,'(F1.0)') 0.001 + if (str.ne."*") call abort + write (str,'(F1.0)') 0.01 + if (str.ne."*") call abort + write (str,'(F1.0)') 0.1 + if (str.ne."*") call abort + write (str,'(F2.0)') -0.001 + if (str.ne."*") call abort + write (str,'(F2.0)') -0.01 + if (str.ne."**") call abort + write (str,'(F2.0)') -0.1 + if (str.ne."**") call abort + write (str,'(F0.2)') 0.0 + if (str.ne.".00") call abort + write (str,'(F0.0)') -0.0 + if (str.ne."-0.") call abort + write (str,'(F0.1)') -0.0 + if (str.ne."-.0") call abort + write (str,'(F0.2)') -0.0 + if (str.ne."-.00") call abort + write (str,'(F0.3)') -0.0 + if (str.ne."-.000") call abort END |