RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr67526.f90
blob3c0834f28dcac857e4102d004299e6a725a37f5d
1 ! { dg-do compile }
2 ! Original code from gerhard dot steinmetz dot fortran at t-online dot de
3 ! PR fortran/67526
4 program p
5 character :: c1 = 'abc'(: ! { dg-error "error in SUBSTRING" }
6 character :: c2 = 'abc'(3: ! { dg-error "error in SUBSTRING" }
7 character :: c3 = 'abc'(:1 ! { dg-error "error in SUBSTRING" }
8 character :: c4 = 'abc'(2:2 ! { dg-error "error in SUBSTRING" }
9 end