annotate gcc/testsuite/gfortran.dg/restricted_expression_1.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-options "-pedantic -ffixed-form" }
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 ! PR fortran/35723
kono
parents:
diff changeset
5 ! An argument subscript into a parameter array was not allowed as
kono
parents:
diff changeset
6 ! dimension. Check this is fixed.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com>
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 call vf0016( 1, 2, 3)
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 end
kono
parents:
diff changeset
13 SUBROUTINE VF0016(nf1,nf2,nf3)
kono
parents:
diff changeset
14 CHARACTER(LEN=9,KIND=1),DIMENSION(3), PARAMETER
kono
parents:
diff changeset
15 $ :: TEST_STRINGS =
kono
parents:
diff changeset
16 $ (/' HI','ABC ',' CDEFG '/)
kono
parents:
diff changeset
17 CHARACTER :: TEST_ARRAY
kono
parents:
diff changeset
18 $(LEN_TRIM(ADJUSTL(TEST_STRINGS(nf1))),
kono
parents:
diff changeset
19 $ SUM(LEN_TRIM(ADJUSTL(TEST_STRINGS))),
kono
parents:
diff changeset
20 $ LEN_TRIM(ADJUSTL(ADJUSTR(TEST_STRINGS(3)))),
kono
parents:
diff changeset
21 $ SUM(LEN_TRIM(ADJUSTL(ADJUSTR(TEST_STRINGS(NF1:NF3:NF2))))) )
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 print *, 2, 10, 5, 7
kono
parents:
diff changeset
24 print *, shape (test_array)
kono
parents:
diff changeset
25 end