view gcc/testsuite/gfortran.dg/common_3.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

! { dg-do compile }
! Check that equivalences match common block layout.
program common_3
  common /block/ a, b, c, d ! { dg-error "not match ordering" }
  integer a, b, c, d, n
  dimension n(4)
  equivalence (a, n(1))
  equivalence (c, n(4))
end program