lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / equiv_9.f90
blobc82c6d3be8ca43cd6058f4c0a3b91ef4af1bcf08
1 ! { dg-do run }
2 ! PR fortran/66377
4 module constant
5 integer x1, x2, x3
6 integer x(3)
7 equivalence (x(1),x1), (x2,x(2)), (x3,x(3))
8 end module
10 program test
11 use constant
12 implicit none
13 x = (/1, 2, 3/)
14 call another()
15 end program
17 subroutine another()
18 use constant, only : x2
19 implicit none
20 if (x2 /= 2) STOP 1
21 end subroutine