summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr15332.f
blob: 813e3018839be2e2ade8c798bc20bc4c03e2bb7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! PR libfortran/15332
! { dg-do run }
! { dg-options "-std=legacy" }
!
      character*12 c

      write (c,100) 0, 1
      if (c .ne. 'i = 0, j = 1') call abort
      
      write (c,100) 0
      if (c .ne. 'i = 0       ') call abort

 100  format ('i = ',i1,:,', j = ',i1)
      end