2 ! { dg-options "-fdec-structure -finit-derived -finit-local-zero" }
4 ! Test -finit-derived with DEC structure and union.
7 subroutine dummy(i1
,r1
,c1
,l1
,i2
,r2
,c2
,l2
)
9 integer, intent(in
) :: i1
10 real, intent(in
) :: r1
11 character, intent(in
) :: c1
12 logical, intent(in
) :: l1
13 integer, intent(inout
) :: i2
14 real, intent(inout
) :: r2
15 character, intent(inout
) :: c2
16 logical, intent(inout
) :: l2
17 print *, i1
, i2
, l1
, l2
, ichar(c1
), ichar(c2
), r1
, r2
18 if ( i1
.ne
. 0 .or
. i2
.ne
. 0 ) call abort()
19 if ( l1
.or
. l2
) call abort()
20 if ( c1
.ne
. achar(0) .or
. c2
.ne
. achar(0) ) call abort()
21 if ( r1
.ne
. 0.0 .or
. r2
.ne
. 0.0 ) call abort()
59 call dummy (x
.i1
, x
.r1
, x
.c1
, x
.l1
, x
.y
.i2
, x
.y
.r2
, x
.y
.c2
, x
.y
.l2
)
60 call dummy (y
.m11
, y
.m12
, y
.m13
, y
.m14
, y
.m24
, y
.m23
, y
.m22
, y
.m21
)