Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/assumed_size_refs_4.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { 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