Retro68/gcc/gcc/testsuite/gfortran.dg/dollar_edit_descriptor_3.f
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

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$" }