diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pr15332.f')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pr15332.f | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr15332.f b/gcc/testsuite/gfortran.dg/pr15332.f new file mode 100644 index 00000000000..238553533e2 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr15332.f @@ -0,0 +1,12 @@ +! PR libfortran/15332 +! {do-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 |