summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr15332.f
blob: 309b59eabf062c277735364776be7ccbe5ff174b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! PR libfortran/15332
! { dg-do run }
      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