OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [common_2.f90] - Rev 774

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

! { dg-do run }
! The equivalence was causing us to miss out c when laying out the common
! block.
program common_2
  common /block/ a, b, c, d
  integer a, b, c, d, n
  dimension n(4)
  equivalence (a, n(1))
  equivalence (c, n(3))
  a = 1
  b = 2
  c = 3
  d = 4
  if (any (n .ne. (/1, 2, 3, 4/))) call abort
end program

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

powered by: WebSVN 2.1.0

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