summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/common_equivalence_3.f
blob: 6acd46aa3527572e52f6f9e36aaa76ed295a3aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
! PR fortran/18870
!
      program main
      equivalence (a,c)
      equivalence (b,c)
      common /foo/ a
      common /bar/ b ! { dg-error "equivalenced to another COMMON" }
      c=3.
      print *,a
      print *,b
      end