2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / contains.f90
blob221488afbe1bd576e04160d702ece5e0616c7ff7
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
3 ! Check whether empty contains are allowd
4 ! PR fortran/29806
5 module x
6 contains
7 end module x ! { dg-error "CONTAINS statement without FUNCTION or SUBROUTINE statement" }
9 program y
10 contains
11 end program y ! { dg-error "CONTAINS statement without FUNCTION or SUBROUTINE statement" }