aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/pr20755.f
blob: 4a9b69cad5724041bae9ece450a5059a3364a6d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! PR libfortran/20755
! { dg-do run }
! { dg-options "-std=legacy" }
!
      character*30 s
      
      write (s,2000) 0.0, 0.02
      if (s .ne. "    0.00       2.000E-02") call abort
      write (s,2000) 0.01, 0.02
      if (s .ne. "   1.000E-02   2.000E-02") call abort
 2000 format (1PG12.3,G12.3)
      end