2 ! { dg-options "-pedantic -ffixed-form" }
5 ! An argument subscript into a parameter array was not allowed as
6 ! dimension. Check this is fixed.
8 ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com>
13 SUBROUTINE VF0016(nf1
,nf2
,nf3
)
14 CHARACTER(LEN
=9,KIND
=1),DIMENSION(3), PARAMETER
16 $ (/' HI','ABC ',' CDEFG '/)
17 CHARACTER :: TEST_ARRAY
18 $(LEN_TRIM(ADJUSTL(TEST_STRINGS(nf1
))),
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
)