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/] [extends_7.f03] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! Check for re-definition of inherited components in the sub-type.MODULE m1IMPLICIT NONETYPE supertINTEGER :: c1INTEGER, PRIVATE :: c2END TYPE supertEND MODULE m1MODULE m2USE m1 ! { dg-error "already in the parent type" }IMPLICIT NONETYPE, EXTENDS(supert) :: subtINTEGER :: c1 ! { dg-error "already in the parent type" }INTEGER :: c2 ! { dg-error "already in the parent type" }END TYPE subtEND MODULE m2! { dg-final { cleanup-modules "m1 m2" } }
