URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [interface_27.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR 40039: Procedures as actual arguments: Check intent of arguments!! Contributed by Janus Weil <janus@gcc.gnu.org>module mcontainssubroutine a(x,f)real :: xinterfacereal function f(y)real,intent(in) :: yend functionend interfaceprint *,f(x)end subroutinereal function func(z)real,intent(inout) :: zfunc = z**2end functionsubroutine callerinterfacereal function p(y)real,intent(in) :: yend functionend interfacepointer :: pcall a(4.3,func) ! { dg-error "INTENT mismatch in argument" }p => func ! { dg-error "INTENT mismatch in argument" }end subroutineend module! { dg-final { cleanup-modules "m" } }
