2 ! This checks the fix for PR32103 in which not using one member
3 ! of an equivalence group would cause all memory of the equivalence
4 ! to be lost and subsequent incorrect referencing of the remaining
7 ! Contributed by Toon Moene <toon@moene.indiv.nluug.nl>
10 real :: a(5) = (/1.0,2.0,3.0,4.0,5.0/)
12 real :: d(5) = (/1.0,2.0,3.0,4.0,5.0/)
13 equivalence (a(3),b(1))
23 if (any(c
.ne
. b
)) call abort ()
27 if (any(a(3:5) .ne
. b
)) call abort ()
30 ! Make sure that bad things do not happen if we do not USE a or b.
34 if (any(d(3:5) .ne
. b
)) call abort ()