1 !RUN: %flang_fc1 -fdebug-dump-symbols %s | FileCheck %s
3 ! Size and alignment of derived types
5 ! Array of derived type with 64-bit alignment
15 !CHECK: x1 size=16 offset=0:
16 !CHECK: y1 size=16 offset=16:
18 !CHECK: z1 size=160 offset=32:
20 !CHECK: z2 size=24 offset=192
24 ! Like t1 but t2 does not need to be aligned on 64-bit boundary
31 !CHECK: x2 size=12 offset=0:
32 !CHECK: y2 size=12 offset=12:
34 !CHECK: z2 size=120 offset=24:
38 ! Parameterized derived types
45 character(kind
=k
, len
=8) :: c3
46 character(kind
=k
, len
=l
) :: d3
48 !CHECK: DerivedType scope: size=48 alignment=8 instantiation of t(k=2_4,l=10_4)
49 !CHECK: a3 size=2 offset=0:
50 !CHECK: b3 size=2 offset=2:
51 !CHECK: c3 size=16 offset=4:
52 !CHECK: d3 size=24 offset=24:
54 !CHECK: DerivedType scope: size=64 alignment=8 instantiation of t(k=4_4,l=20_4)
55 !CHECK: a3 size=4 offset=0:
56 !CHECK: b3 size=4 offset=4:
57 !CHECK: c3 size=32 offset=8:
58 !CHECK: d3 size=24 offset=40:
68 !CHECK: DerivedType scope: size=7 alignment=1 instantiation of t(k=7_4)
69 !CHECK: c size=7 offset=0: ObjectEntity type: CHARACTER(7_4,1)