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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR25951, a regression caused by the assumed
3
! size patch.
4
! Test case provided by Mark Hesselink  
5
PROGRAM loc_1
6
  integer i(10)
7
  call f (i)
8
CONTAINS
9
   SUBROUTINE f (x)
10
      INTEGER, DIMENSION(*)   :: x
11
      INTEGER                 :: address
12
! The next line would cause:
13
! Error: The upper bound in the last dimension must appear in the
14
! reference to the assumed size array 'x' at (1)
15
      address=LOC(x)
16
   END SUBROUTINE f
17
END PROGRAM loc_1

powered by: WebSVN 2.1.0

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