2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_29.f90
blob89dfe5093146c41bf749a07333967faae35dc649
1 ! { dg-do compile }
3 ! PR fortran/57435
5 ! Contributed by Lorenz Hüdepohl
7 module precision
8 end module precision
9 contains
10 use precision ! { dg-error "Unexpected USE statement in CONTAINS section" }
11 module stressten_rt ! { dg-error "Unexpected MODULE statement in CONTAINS section" }
12 use precision ! { dg-error "Unexpected USE statement in CONTAINS section" }
13 implicit none ! { dg-error "Unexpected IMPLICIT NONE statement in CONTAINS section" }
15 ! { dg-error "Unexpected end of file" "" { target "*-*-*" } 0 }