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/] [interface_28.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR 36947: Attributes not fully checked comparing actual vs dummy procedure!! Original test case by Walter Spector <w6ws@earthlink.net>! Modified by Janus Weil <janus@gcc.gnu.org>module testsubcontainssubroutine test(sub)interfacesubroutine sub(x)integer, intent(in), optional:: xend subroutineend interfacecall sub()end subroutineend modulemodule subcontainssubroutine subActual(x)! actual subroutine's argment is different in intentinteger, intent(inout),optional:: xend subroutinesubroutine subActual2(x)! actual subroutine's argment is missing OPTIONALinteger, intent(in):: xend subroutineend moduleprogram interfaceCheckuse testsubuse subinteger :: acall test(subActual) ! { dg-error "INTENT mismatch in argument" }call test(subActual2) ! { dg-error "OPTIONAL mismatch in argument" }end program! { dg-final { cleanup-modules "sub testsub" } }
