rt_gccstream/gcc/testsuite/gfortran.dg/comma_format_extension_2.f

11 lines
257 B
Fortran

! { dg-do compile }
! test that the extension for a missing comma is accepted
subroutine mysub
dimension ibar(5)
write (3,1001) ( ibar(m), m = 1, 5 )
1001 format (/5x,' ',i4' '/ ) ! { dg-warning "Missing comma" }
return
end