2 ! { dg-options "-std=legacy" }
4 subroutine broken_equiv1
7 equivalence (h(1:3), i(2:1)) ! { dg-error "has length zero" }
10 subroutine broken_equiv2
13 equivalence (j(2:3), k(1:5)) ! { dg-error "exceeds the string length" }
16 subroutine broken_equiv3
19 equivalence (l(2:3:4), m(1:2)) ! { dg-error "\[Ss\]yntax error" }