1! { dg-do compile }
2! PR fortran/24640.  We needed to check that whitespace follows
3! a statement label in free form.
4!
5program pr24640
6
710: a=10   ! { dg-error "character in statement" }
8
9end program
10
11