2 ! This tests the fix for PR17917, where equivalences were not being
3 ! written to and read back from modules.
5 ! Contributed by Paul Thomas pault@gcc.gnu.org
7 module test_equiv
!Bug 17917
9 real a(2),b(4),c(4), d(8)
10 equivalence (a(1),b(2)), (c(1),d(5))
15 if (any (d(5:8)/=z
)) call abort ()
22 c
= (/99.0_4
, 999.0_4
, 999.0_4
, 99.0_4
/)
24 end program module_equiv