2 ! { dg-options "-std=f95 -pedantic -fall-intrinsics" }
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,':'
9 if (buffer.ne.":0:") call abort
11 ! { dg-output "Fortran runtime error: Zero width in format descriptor(\n|\r\n|\r)" }