Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/fmt_g0_2.f08 @ 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 } |
131 | 2 ! { dg-options "-std=f95 -pedantic " } |
111 | 3 ! { dg-shouldfail "Zero width in format descriptor" } |
4 ! PR36420 Fortran 2008: g0 edit descriptor | |
5 ! Test case provided by Jerry DeLisle <jvdelisle@gcc.gnu.org> | |
6 character(25) :: string = "(g0,g0,g0)" | |
7 character(33) :: buffer | |
8 write(buffer, string) ':',0,':' | |
131 | 9 if (buffer.ne.":0:") STOP 1 |
111 | 10 end |
11 ! { dg-output "Fortran runtime error: Zero width in format descriptor(\n|\r\n|\r)" } |