2 ! { dg-options "-pedantic -ffixed-form" }
5 ! Check that a program using a local variable subscript is still rejected.
7 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
12 SUBROUTINE VF0016(nf1
,nf2
,nf3
)
13 CHARACTER(LEN
=9,KIND
=1),DIMENSION(3), PARAMETER
15 $ (/' HI','ABC ',' CDEFG '/)
17 CHARACTER :: TEST_ARRAY
18 $(LEN_TRIM(ADJUSTL(TEST_STRINGS(i
))), ! { dg-error "'i' cannot appear" }
19 $ SUM(LEN_TRIM(ADJUSTL(TEST_STRINGS
))),
20 $ LEN_TRIM(ADJUSTL(ADJUSTR(TEST_STRINGS(3)))),
21 $ SUM(LEN_TRIM(ADJUSTL(ADJUSTR(TEST_STRINGS(NF1
:NF3
:NF2
))))) )
24 print *, shape (test_array
)