1 ! Test lowering of derived type with kind parameters
2 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
6 integer(4), kind
:: k1
= 7
12 integer(4), kind
:: k1
13 integer(8), kind
:: k2
14 type(t(k1
+3, k2
+4)) :: at
19 type(t3(k
)), pointer :: at3
29 ! -----------------------------------------------------------------------------
30 ! Test mangling of derived type with kind parameters
31 ! -----------------------------------------------------------------------------
33 ! CHECK-LABEL: func @_QMmPfoo
34 ! CHECK-SAME: !fir.ref<!fir.type<_QMmTtK7K12{c:!fir.array<12x!fir.char<1,7>>
39 ! CHECK-LABEL: func @_QMmPfoo2
40 ! CHECK-SAME: !fir.ref<!fir.type<_QMmTt2K12K13{at:!fir.type<_QMmTtK15K17{c:!fir.array<17x!fir.char<1,15>>}>}>>
42 type(t2(12, 13)) :: at2
45 ! CHECK-LABEL: func @_QMmPfoo3
46 ! CHECK-SAME: !fir.ref<!fir.type<_QMmTt3K7{at3:!fir.box<!fir.ptr<!fir.type<_QMmTt3K7>>>}>>
51 ! CHECK-LABEL: func @_QMmPfoo4
52 ! CHECK-SAME: !fir.ref<!fir.type<_QMmTt4KN4{i:f32}>>