1! { dg-do compile }
2! { dg-options "-std=legacy" }
3!
4! PR fortran/34557
5!
6! Substrings with space before '(' were not properly parsed.
7!
8implicit none
9character :: A(2,2)*2, B(2)*3, C*5
10equivalence (A (2,1) (1:1), B (1) (2:3), C (3:5))
11end
12