URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [module_interface_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! Tests the fix for PR29464, in which the second USE of the generic! interface caused an error.!! Contributed by Vivek Rao <vivekrao4@yahoo.com>!module foo_modimplicit noneinterface twicemodule procedure twice_realend interface twicecontainsreal function twice_real(x)real :: xtwice_real = 2*xend function twice_realend module foo_modsubroutine foobar ()use foo_mod, only: twice, twiceprint *, twice (99.0)end subroutine foobarprogram xfoouse foo_mod, only: two => twice, dbl => twiceimplicit nonecall foobar ()print *, two (2.3)print *, dbl (2.3)end program xfoo! { dg-final { cleanup-modules "foo_mod" } }
