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_4.f90] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do compile }
!
! PR fortran/34759
! gfortran was before rejecting passing an assumed-size array
! where the last dimension was specified.
!
! Test case provided by Dick Hendickson.
!
       subroutine j_assumed_size(A,N)
       dimension A(10,11,12,*), k(3), l(3), m(4)
       m = shape(A(:,:,:,:N)) ! OK
       l = shape(A(:,:,:,3))  ! OK
       m = shape(A(:,:,:,:))  ! { dg-error "upper bound of assumed size array" }
       m = shape(A) ! { dg-error "must not be an assumed size array" }
       end

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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