Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 ! { dg-do run } |
2 ! PR31395 Colon edit descriptor is ignored. | |
3 ! Test case derived from PR. Prepared by Jerry DeLisle | |
4 ! <jvdelisle@gcc.gnu.org> | |
5 PROGRAM test | |
6 INTEGER :: i = 1 | |
7 character(30) :: astring | |
8 WRITE(astring, 10) i | |
9 10 FORMAT('i =',I2:' this should not print') | |
131 | 10 if (astring.ne."i = 1") STOP 1 |
111 | 11 write(astring, 20) i, i |
12 20 format('i =',I2:' this should print',I2) | |
131 | 13 if (astring.ne."i = 1 this should print 1") STOP 2 |
111 | 14 END PROGRAM test |