summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/equiv_1.f90
blob: e9e44153606b27d38bde70204948c380d4742720 (plain)
1
2
3
4
5
6
7
8
9
      program broken_equiv
      real d (2)   ! { dg-error "Inconsistent equivalence rules" "d" }
      real e      ! { dg-error "Inconsistent equivalence rules" "e" }
      equivalence (d (1), e), (d (2), e)

      real f (2)   ! { dg-error "Inconsistent equivalence rules" "f" }
      double precision g (2) ! { dg-error "Inconsistent equivalence rules" "g" }
      equivalence (f (1), g (1)), (f (2), g (2)) ! Not standard conforming
      end