2 ! { dg-options "-fdec-structure" }
4 ! Test basic UNION implementation.
8 character(*), intent(in
) :: s
52 if ( r1
.a
.eq
. 0 ) call aborts ("basic union 1")
54 ! Endian-agnostic runtime check
55 r2
.long
= int(z
'12345678')
56 if (.not
. ( (r2
.w1
.eq
. int(z
'1234',2) .and
. r2
.w2
.eq
. int(z
'5678',2)) &
57 .or
. (r2
.w1
.eq
. int(z
'5678',2) .and
. r2
.w2
.eq
. int(z
'1234',2))) ) then
58 call aborts ("basic union 2")