summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/common_3.f90
blob: 818738e45d377aa9cf630b70898ab9226e2dde6f (plain)
1
2
3
4
5
6
7
8
9
! { 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