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

9 lines
336 B
Fortran

! { dg-do run }
! { dg-options "-std=gnu" }
! Test for dollar descriptor in the middle of a format
300 format(1000(a,$)) ! { dg-warning "should be the last specifier" }
write(*,300) "gee", "gee"
write(*,"(1000(a,$))") "foo", "bar" ! { dg-warning "should be the last specifier" }
end
! { dg-output "^geegeefoobar$" }