annotate gcc/testsuite/gfortran.dg/fmt_colon.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! PR31395 Colon edit descriptor is ignored.
kono
parents:
diff changeset
3 ! Test case derived from PR. Prepared by Jerry DeLisle
kono
parents:
diff changeset
4 ! <jvdelisle@gcc.gnu.org>
kono
parents:
diff changeset
5 PROGRAM test
kono
parents:
diff changeset
6 INTEGER :: i = 1
kono
parents:
diff changeset
7 character(30) :: astring
kono
parents:
diff changeset
8 WRITE(astring, 10) i
kono
parents:
diff changeset
9 10 FORMAT('i =',I2:' this should not print')
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
10 if (astring.ne."i = 1") STOP 1
111
kono
parents:
diff changeset
11 write(astring, 20) i, i
kono
parents:
diff changeset
12 20 format('i =',I2:' this should print',I2)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
13 if (astring.ne."i = 1 this should print 1") STOP 2
111
kono
parents:
diff changeset
14 END PROGRAM test