1! PR libfortran/15332
2! { dg-do run }
3! { dg-options "-std=legacy" }
4!
5      character*12 c
6
7      write (c,100) 0, 1
8      if (c .ne. 'i = 0, j = 1') call abort
9
10      write (c,100) 0
11      if (c .ne. 'i = 0       ') call abort
12
13 100  format ('i = ',i1,:,', j = ',i1)
14      end
15