Fix compilation failure with C++98 compilers
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr15332.f
blobd4d4538bd86da0275c10c8cdb734b8ab0f537179
1 ! PR libfortran/15332
2 ! { dg-do run }
3 ! { dg-options "-std=legacy" }
5 character*12 c
7 write (c,100) 0, 1
8 if (c .ne. 'i = 0, j = 1') STOP 1
10 write (c,100) 0
11 if (c .ne. 'i = 0 ') STOP 2
13 100 format ('i = ',i1,:,', j = ',i1)
14 end