Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/fmt_g0_2.f08 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-options "-std=f95 -pedantic " } ! { dg-shouldfail "Zero width in format descriptor" } ! PR36420 Fortran 2008: g0 edit descriptor ! Test case provided by Jerry DeLisle <jvdelisle@gcc.gnu.org> character(25) :: string = "(g0,g0,g0)" character(33) :: buffer write(buffer, string) ':',0,':' if (buffer.ne.":0:") STOP 1 end ! { dg-output "Fortran runtime error: Zero width in format descriptor(\n|\r\n|\r)" }