Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/contained_equivalence_1.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { 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_equiv real a a = 1.0 call foo () if (a.ne.1.0) call abort () contains subroutine foo () real b equivalence (a, b) b = 2.0 end subroutine foo end program contained_equiv