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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [restricted_expression_2.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-pedantic -ffixed-form" }
3
 
4
! PR fortran/35723
5
! Check that a program using a local variable subscript is still rejected.
6
 
7
! Contributed by Tobias Burnus 
8
 
9
      call       vf0016(  1,  2,  3)
10
 
11
      end
12
      SUBROUTINE VF0016(nf1,nf2,nf3)
13
      CHARACTER(LEN=9,KIND=1),DIMENSION(3), PARAMETER
14
     $     ::  TEST_STRINGS =
15
     $  (/'       HI','ABC      ','  CDEFG  '/)
16
      INTEGER :: i = 2
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)))))   )
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.