Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/argument_checking_6.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! PR fortran/32669 ! ! Contributed by Janus Weil <jaydub66@gmail.com> ! program tfe implicit none real,dimension(-1:1) :: w real,dimension(1:4) :: x real,dimension(0:3) :: y real,dimension(-1:2) :: z call sub(x(:)) call sub(y(:)) call sub(z(:)) call sub(w(:)) ! { dg-error "too few elements" } contains subroutine sub(a) implicit none real,dimension(1:4) :: a end subroutine sub end program tfe