1! { dg-do compile }
2! Make sure this error is flagged.
3subroutine foo() ! { dg-error "is already being used as a SUBROUTINE" }
4end subroutine foo
5
6subroutine bar() bind(C,name="foo") ! { dg-error "is already being used as a SUBROUTINE" }
7end subroutine bar
8