2 ! { dg-options "-std=f95" }
4 ! Parsing of finalizer procedure definitions.
5 ! Check that CONTAINS/FINAL in derived types is rejected for F95.
13 CONTAINS ! { dg-error "Fortran 2003: CONTAINS block in derived type definition" }
14 FINAL
:: finalize_single
! { dg-error "Fortran 2003: FINAL procedure declaration|FINAL procedure 'finalize_single' at .1. is not a SUBROUTINE" }
15 END TYPE mytype
! { dg-error "Fortran 2008: Derived type definition at .1. with empty CONTAINS section" }
19 SUBROUTINE finalize_single (el
)
22 ! Do nothing in this test
23 END SUBROUTINE finalize_single