gcc/testsuite/gfortran.dg/contains.f90
raw| 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 ! { dg-error "CONTAINS statement without FUNCTION or SUBROUTINE statement" } |
| 7 | end module x |
| 8 | |
| 9 | program y |
| 10 | contains ! { dg-error "CONTAINS statement without FUNCTION or SUBROUTINE statement" } |
| 11 | end program y |