URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [argument_checking_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR fortran/30940program testimplicit noneinterfacesubroutine foo(a)character(len=1),dimension(:) :: aend subroutine foosubroutine bar(a)character(len=1),dimension(:,:) :: aend subroutine barsubroutine foobar(a)character(len=1),dimension(4) :: aend subroutine foobarsubroutine arr(a)character(len=1),dimension(1,2,1,2) :: aend subroutine arrend interfacecharacter(len=2) :: len2character(len=4) :: len4len2 = '12'len4 = '1234'call foo(len2) ! { dg-warning "Rank mismatch in argument" }call foo("ca") ! { dg-warning "Rank mismatch in argument" }call bar("ca") ! { dg-warning "Rank mismatch in argument" }call foobar(len2) ! { dg-warning "contains too few elements" }call foobar(len4)call foobar("bar") ! { dg-warning "contains too few elements" }call foobar("bar33")call arr(len2) ! { dg-warning "contains too few elements" }call arr(len4)call arr("bar") ! { dg-warning "contains too few elements" }call arr("bar33")end program test
