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
11 !CHECK: x1 size=12 offset=0:
12 !CHECK: y1 size=12 offset=16:
14 !CHECK: z1 size=160 offset=32:
18 ! Like t1 but t2 does not need to be aligned on 64-bit boundary
25 !CHECK: x2 size=12 offset=0:
26 !CHECK: y2 size=12 offset=12:
28 !CHECK: z2 size=120 offset=24:
32 ! Parameterized derived types
39 character(kind
=k
, len
=8) :: c3
40 character(kind
=k
, len
=l
) :: d3
42 !CHECK: DerivedType scope: size=48 alignment=8 instantiation of t(k=2_4,l=10_4)
43 !CHECK: a3 size=2 offset=0:
44 !CHECK: b3 size=2 offset=2:
45 !CHECK: c3 size=16 offset=4:
46 !CHECK: d3 size=24 offset=24:
48 !CHECK: DerivedType scope: size=64 alignment=8 instantiation of t(k=4_4,l=20_4)
49 !CHECK: a3 size=4 offset=0:
50 !CHECK: b3 size=4 offset=4:
51 !CHECK: c3 size=32 offset=8:
52 !CHECK: d3 size=24 offset=40:
62 !CHECK: DerivedType scope: size=7 alignment=1 instantiation of t(k=7_4)
63 !CHECK: c size=7 offset=0: ObjectEntity type: CHARACTER(7_4,1)