Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/extends_7.f03 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! Check for re-definition of inherited components in the sub-type. MODULE m1 IMPLICIT NONE TYPE supert INTEGER :: c1 INTEGER, PRIVATE :: c2 END TYPE supert END MODULE m1 MODULE m2 USE m1 ! { dg-error "already in the parent type" } IMPLICIT NONE TYPE, EXTENDS(supert) :: subt INTEGER :: c1 ! { dg-error "already in the parent type" } INTEGER :: c2 ! { dg-error "already in the parent type" } END TYPE subt END MODULE m2