1 ! RUN: %python %S/test_symbols.py %s %flang_fc1
2 ! Allow redeclaration of inherited inaccessible components
5 !DEF: /m1/t0 PRIVATE DerivedType
9 !DEF: /m1/t1 PUBLIC DerivedType
10 type, extends(t0
) :: t1
11 !DEF: /m1/t1/n1a PRIVATE ObjectEntity INTEGER(4)
12 !DEF: /m1/t1/n1b PRIVATE ObjectEntity INTEGER(4)
13 integer, private
:: n1a
= 1, n1b
= 2
20 !DEF: /m2/t1 PUBLIC Use
21 !DEF: /m2/t2 PUBLIC DerivedType
22 type, extends(t1
) :: t2
23 !DEF: /m2/t2/t0 ObjectEntity REAL(4)
25 !DEF: /m2/t2/n1a ObjectEntity REAL(4)
29 !DEF: /m2/t3 PUBLIC DerivedType
30 type, extends(t2
) :: t3
31 !DEF: /m2/t3/n1b ObjectEntity REAL(4)
35 !DEF: /test (Subroutine) Subprogram
40 !DEF: /test/x ObjectEntity TYPE(t3)
46 !DEF: /m2/t3/t2 (ParentComp) ObjectEntity TYPE(t2)
48 x
%t2
= t2(t0
=2., n1a
=3.)