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()
50 call dummy (x
.m11
, x
.m12
, x
.m13
, x
.m14
, x
.m24
, x
.m23
, x
.m22
, x
.m21
)
52 if ( x
.r
.i
.ne
. 0 ) then