1 ! RUN: %python %S/test_symbols.py %s %flang_fc1
2 !DEF: /s1 (Subroutine) Subprogram
5 !DEF: /s1/x ObjectEntity REAL(8)
6 real(kind
=8) :: x
= 2.0
7 !DEF: /s1/a ObjectEntity INTEGER(4)
9 !DEF: /s1/t DerivedType
13 !DEF: /s1/z ALLOCATABLE ObjectEntity CLASS(t)
14 class(t
), allocatable
:: z
15 !DEF: /s1/Block1/a AssocEntity REAL(8)
17 !DEF: /s1/Block1/b AssocEntity REAL(8)
18 !DEF: /s1/Block1/c AssocEntity CLASS(t)
20 associate (a
=> x
, b
=> x
+1, c
=> z
)
27 !DEF: /s2 (Subroutine) Subprogram
29 !DEF: /s2/x ObjectEntity CHARACTER(4_4,1)
30 !DEF: /s2/y ObjectEntity CHARACTER(4_4,1)
32 !DEF: /s2/Block1/z AssocEntity CHARACTER(4_8,1)
38 !TODO: need correct length for z
39 !DEF: /s2/Block2/z AssocEntity CHARACTER(8_8,1)
48 !DEF: /s3 (Subroutine) Subprogram
50 !DEF: /s3/t1 DerivedType
52 !DEF: /s3/t1/a1 ObjectEntity INTEGER(4)
56 !DEF: /s3/t2 DerivedType
57 type, extends(t1
) :: t2
58 !DEF: /s3/t2/a2 ObjectEntity INTEGER(4)
61 !DEF: /s3/i ObjectEntity INTEGER(4)
64 !DEF: /s3/x POINTER ObjectEntity CLASS(t1)
65 class(t1
), pointer :: x
71 !DEF: /s3/Block1/y TARGET AssocEntity TYPE(t2)
77 !DEF: /s3/Block2/y TARGET AssocEntity TYPE(t1)
81 !DEF: /s3/Block3/y TARGET AssocEntity CLASS(t1)
86 !DEF: /s4 (Subroutine) Subprogram
88 !DEF: /s4/t1 DerivedType
90 !DEF: /s4/t1/a ObjectEntity REAL(4)
93 !DEF: /s4/t2 DerivedType
96 !DEF: /s4/t2/b ObjectEntity TYPE(t1)
100 !DEF: /s4/x ObjectEntity TYPE(t2)
102 !DEF: /s4/Block1/y AssocEntity TYPE(t1)
112 !DEF: /s5 (Subroutine) Subprogram
114 !DEF: /s5/t DerivedType
116 !DEF: /s5/t/a ObjectEntity REAL(4)
119 !DEF: /s5/b ObjectEntity REAL(4)
121 !DEF: /s5/Block1/x AssocEntity TYPE(t)
122 !DEF: /s5/f (Function) Subprogram TYPE(t)
133 !DEF: /s5/f/f ObjectEntity TYPE(t)