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/OtherConstruct1/a AssocEntity REAL(8)
17 !DEF: /s1/OtherConstruct1/b AssocEntity REAL(8)
18 !DEF: /s1/OtherConstruct1/c AssocEntity CLASS(t)
20 associate (a
=> x
, b
=> x
+1, c
=> z
)
22 !REF: /s1/OtherConstruct1/a
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/OtherConstruct1/z AssocEntity CHARACTER(4_8,1)
35 !REF: /s2/OtherConstruct1/z
38 !TODO: need correct length for z
39 !DEF: /s2/OtherConstruct2/z AssocEntity CHARACTER(8_8,1)
43 !REF: /s2/OtherConstruct2/z
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/OtherConstruct1/y TARGET AssocEntity CLASS(t2)
77 !DEF: /s3/OtherConstruct2/y TARGET AssocEntity TYPE(t1)
81 !DEF: /s3/OtherConstruct3/y TARGET AssocEntity CLASS(t1)
87 !DEF: /s4 (Subroutine) Subprogram
89 !DEF: /s4/t1 DerivedType
91 !DEF: /s4/t1/a ObjectEntity REAL(4)
94 !DEF: /s4/t2 DerivedType
97 !DEF: /s4/t2/b ObjectEntity TYPE(t1)
101 !DEF: /s4/x ObjectEntity TYPE(t2)
103 !DEF: /s4/OtherConstruct1/y AssocEntity TYPE(t1)
107 !REF: /s4/OtherConstruct1/y
113 !DEF: /s5 (Subroutine) Subprogram
115 !DEF: /s5/t DerivedType
117 !DEF: /s5/t/a ObjectEntity REAL(4)
120 !DEF: /s5/b ObjectEntity REAL(4)
122 !DEF: /s5/OtherConstruct1/x AssocEntity TYPE(t)
123 !DEF: /s5/f (Function) Subprogram TYPE(t)
126 !REF: /s5/OtherConstruct1/x
134 !DEF: /s5/f/f ObjectEntity TYPE(t)