* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / gfortran.dg / extends_7.f03
blob35f74d001b68c5c9d509da6b37393c44364e9a90
1 ! { dg-do compile }
2 ! Check for re-definition of inherited components in the sub-type.
4 MODULE m1
5   IMPLICIT NONE
7   TYPE supert
8     INTEGER :: c1
9     INTEGER, PRIVATE :: c2
10   END TYPE supert
12 END MODULE m1
14 MODULE m2
15   USE m1 ! { dg-error "already in the parent type" }
16   IMPLICIT NONE
18   TYPE, EXTENDS(supert) :: subt
19     INTEGER :: c1 ! { dg-error "already in the parent type" }
20     INTEGER :: c2 ! { dg-error "already in the parent type" }
21   END TYPE subt
23 END MODULE m2