testsuite: Allow matching `{_1, { 0,0,0,0 }}` for vect/slp-gap-1.c
[official-gcc.git] / gcc / testsuite / gfortran.dg / argument_checking_6.f90
blob3742ab6e1e985b0611d89941284f520c56b1ccde
1 ! { dg-do compile }
2 ! PR fortran/32669
4 ! Contributed by Janus Weil <jaydub66@gmail.com>
6 program tfe
7 implicit none
9 real,dimension(-1:1) :: w
10 real,dimension(1:4) :: x
11 real,dimension(0:3) :: y
12 real,dimension(-1:2) :: z
14 call sub(x(:))
15 call sub(y(:))
16 call sub(z(:))
17 call sub(w(:)) ! { dg-error "too few elements" }
19 contains
20 subroutine sub(a)
21 implicit none
22 real,dimension(1:4) :: a
23 end subroutine sub
24 end program tfe