2011-05-23 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / dollar_edit_descriptor_3.f
blob6e5bf6890f22daf767b737f86b609774ed829363
1 ! { dg-do run }
2 ! { dg-options "-std=gnu" }
3 ! Test for dollar descriptor in the middle of a format
4 300 format(1000(a,$)) ! { dg-warning "should be the last specifier" }
5 write(*,300) "gee", "gee"
6 write(*,"(1000(a,$))") "foo", "bar" ! { dg-warning "should be the last specifier" }
7 end
8 ! { dg-output "^geegeefoobar$" }