URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [use_13.f90] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }!! PR fortran/44360!! Test-case based on a contribution of Vittorio Zecca.!! The used subroutine was not the use-associated but the host associated one!! The use-associated function/variable were already working properly.!module minteger :: var = 43containsinteger function fun()fun = 42end function funsubroutine fun2()var = 44end subroutine fun2end module mmodule m2integer :: var = -2containssubroutine test()! All procedures/variables below refer to the ones in module "m"! and not to the siblings in this module "m2".use mif (fun() /= 42) call abort()if (var /= 43) call abort()call fun2()if (var /= 44) call abort()end subroutine testinteger function fun()call abort()fun = -3end function funsubroutine fun2()call abort()end subroutine fun2end module m2use m2call test()end! { dg-final { cleanup-modules "m m2" } }
Go to most recent revision | Compare with Previous | Blame | View Log
