[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / real10-x86-01.f90
blob8e59fa842e2159d04b9314ffcea35bc5641575ba
1 ! RUN: %python %S/test_symbols.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
3 !DEF: /MainProgram1/rpdt DerivedType
4 !DEF: /MainProgram1/rpdt/k TypeParam INTEGER(4)
5 type :: rpdt(k)
6 !REF: /MainProgram1/rpdt/k
7 integer, kind :: k
8 !REF: /MainProgram1/rpdt/k
9 !DEF: /MainProgram1/rpdt/x ObjectEntity REAL(int(int(k,kind=4),kind=8))
10 real(kind=k) :: x
11 end type rpdt
12 !DEF: /MainProgram1/zpdt DerivedType
13 !DEF: /MainProgram1/zpdt/k TypeParam INTEGER(4)
14 type :: zpdt(k)
15 !REF: /MainProgram1/zpdt/k
16 integer, kind :: k
17 !REF: /MainProgram1/zpdt/k
18 !DEF: /MainProgram1/zpdt/x ObjectEntity COMPLEX(int(int(k,kind=4),kind=8))
19 complex(kind=k) :: x
20 end type zpdt
21 !REF: /MainProgram1/rpdt
22 !DEF: /MainProgram1/a10 ObjectEntity TYPE(rpdt(k=10_4))
23 type(rpdt(10)) :: a10
24 !REF: /MainProgram1/zpdt
25 !DEF: /MainProgram1/z10 ObjectEntity TYPE(zpdt(k=10_4))
26 type(zpdt(10)) :: z10
27 end program