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