libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / argument_checking_10.f90
blob315ee0388f99a3a9a0bd3a86d223f84531b51e9d
1 ! { dg-do compile }
3 ! PR fortran/34425
5 ! Contributed by Joost VandeVondele
7 IMPLICIT NONE
8 INTEGER :: i(-1:1)
9 INTEGER :: j(-2:-1)
10 CALL S(i)
11 CALL S(j) ! { dg-warning "Actual argument contains too few elements for dummy argument 'i' .2/3." }
12 CONTAINS
13 SUBROUTINE S(i)
14 INTEGER :: i(0:2)
15 END SUBROUTINE
16 END