OSDN Git Service

2010-06-07 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / contains.f90
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" }
8
9 program y
10   contains
11 end program y ! { dg-error "CONTAINS statement without FUNCTION or SUBROUTINE statement" }