URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [finalize_3.f03] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! Parsing of finalizer procedure definitions.! Check that CONTAINS disallows further components and no double CONTAINS! is allowed.MODULE final_typeIMPLICIT NONETYPE :: mytypeINTEGER, ALLOCATABLE :: fooarr(:)REAL :: foobarCONTAINSCONTAINS ! { dg-error "Already inside a CONTAINS block" }INTEGER :: x ! { dg-error "must precede CONTAINS" }END TYPE mytypeEND MODULE final_typePROGRAM finalizerIMPLICIT NONE! Do nothing hereEND PROGRAM finalizer! { dg-final { cleanup-modules "final_type" } }
