1! { dg-do compile } 2! { dg-options "-std=f2003" } 3! Check whether empty contains are allowd 4! PR fortran/29806 5module x 6 contains ! { dg-error "CONTAINS statement without FUNCTION or SUBROUTINE statement" } 7end module x 8 9program y 10 contains ! { dg-error "CONTAINS statement without FUNCTION or SUBROUTINE statement" } 11end program y 12