OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [assumed_size_refs_3.f90] - Diff between revs 302 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 302 Rev 384
! { dg-do compile }
! { dg-do compile }
! Tests the fix for PR25951, a regression caused by the assumed
! Tests the fix for PR25951, a regression caused by the assumed
! size patch.
! size patch.
! Test case provided by Mark Hesselink  
! Test case provided by Mark Hesselink  
PROGRAM loc_1
PROGRAM loc_1
  integer i(10)
  integer i(10)
  call f (i)
  call f (i)
CONTAINS
CONTAINS
   SUBROUTINE f (x)
   SUBROUTINE f (x)
      INTEGER, DIMENSION(*)   :: x
      INTEGER, DIMENSION(*)   :: x
      INTEGER                 :: address
      INTEGER                 :: address
! The next line would cause:
! The next line would cause:
! Error: The upper bound in the last dimension must appear in the
! Error: The upper bound in the last dimension must appear in the
! reference to the assumed size array 'x' at (1)
! reference to the assumed size array 'x' at (1)
      address=LOC(x)
      address=LOC(x)
   END SUBROUTINE f
   END SUBROUTINE f
 
 

powered by: WebSVN 2.1.0

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