Skip to content

Commit 1122581

Browse files
authored
[flang][AIX] add use of the variables (NFC) (#168073)
After bf3b704, the type definition is no longer generated without using the variables. This patch is to add the use of the derived type variables.
1 parent c6ee2d9 commit 1122581

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flang/test/Lower/derived-types-bindc.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,10 @@ subroutine s1()
4141
end type
4242
type(t4) :: xt4
4343
! CHECK-DAG: %_QFs1Tt4 = type <{ i16, [2 x i8], { double, double }, [1 x i8], [3 x i8] }>
44+
45+
xt0%x2 = 1.
46+
xt1%x2 = 1.
47+
xt2%x2 = 1.
48+
xt3%x2 = (1., 1.)
49+
xt4%x2 = (1., 1.)
4450
end subroutine s1

0 commit comments

Comments
 (0)