OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [contained_equivalence_1.f90] - Blame information for rev 437

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! This program tests that equivalence only associates variables in
3
! the same scope.
4
!
5
! provided by Paul Thomas - pault@gcc.gnu.org
6
!
7
program contained_equiv
8
  real a
9
  a = 1.0
10
  call foo ()
11
  if (a.ne.1.0) call abort ()
12
contains
13
  subroutine foo ()
14
    real b
15
    equivalence (a, b)
16
    b = 2.0
17
  end subroutine foo
18
end program contained_equiv

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.