2 ! { dg-options "-fdec-structure" }
4 ! Test anonymous STRUCTURE definitions.
8 character(*), intent(in
) :: s
14 structure recrd
, recrd_a(3)
23 r5
.recrd_a(1) = r5
.recrd
27 if (r5
.recrd
.x
.ne
. 1.3) then
28 call aborts("r5.recrd.x")
31 if (r5
.recrd
.y
.ne
. 5.7) then
32 call aborts("r5.recrd.y")
35 if (r5
.recrd_a(1).x
.ne
. 1.3 .or
. r5
.recrd_a(1).y
.ne
. 5.7) then
36 call aborts("r5.recrd_a(1)")
39 if (r5
.recrd_a(2).x
.ne
. 5.7 .or
. r5
.recrd_a(2).y
.ne
. 1.3) then
40 call aborts("r5.recrd_a(2)")