Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / gfortran.dg / typebound_proc_3.f03
blob13b90c14f29cae8824406dd571f5a87e6c48db19
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
4 ! Type-bound procedures
5 ! Test that F2003 does not allow empty CONTAINS sections.
7 MODULE testmod
8   IMPLICIT NONE
10   TYPE t
11     INTEGER :: x
12   CONTAINS
13   END TYPE t ! { dg-error "Fortran 2008" }
15 END MODULE testmod
17 ! { dg-final { cleanup-modules "testmod" } }