1! { dg-do compile }
2! PR 50627 - this used to free a namespace twice.
3program main
4  block
5end program main ! { dg-error "END BLOCK" }
6! { dg-prune-output "Unexpected end of file" }
7