! { dg-do run }! This program tests that equivalence only associates variables in! the same scope.!! provided by Paul Thomas - pault@gcc.gnu.org!program contained_equivreal aa=1.0call foo()if(a.ne.1.0)call abort()contains subroutine foo()real bequivalence(a,b)b=2.0end subroutine fooend program contained_equiv