PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / restricted_expression_1.f90
blob45211a585f4006e660043b1561c493821c4b5e89
1 ! { dg-do compile }
2 ! { dg-options "-pedantic -ffixed-form" }
4 ! PR fortran/35723
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>
10 call vf0016( 1, 2, 3)
12 end
13 SUBROUTINE VF0016(nf1,nf2,nf3)
14 CHARACTER(LEN=9,KIND=1),DIMENSION(3), PARAMETER
15 $ :: TEST_STRINGS =
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))))) )
23 print *, 2, 10, 5, 7
24 print *, shape (test_array)
25 end