OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gfortran.dg/] [restricted_expression_1.f90] - Blame information for rev 581

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-pedantic -ffixed-form" }
3
 
4
! PR fortran/35723
5
! An argument subscript into a parameter array was not allowed as
6
! dimension.  Check this is fixed.
7
 
8
! Contributed by Dick Hendrickson 
9
 
10
      call       vf0016(  1,  2,  3)
11
 
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)))))   )
22
 
23
       print *, 2, 10, 5, 7
24
       print *, shape (test_array)
25
         end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.