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/] [contained_module_proc_1.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! Tests the check for PR31292, in which the module procedure! statement would put the symbol for assign_t in the wrong! namespace and this caused the interface checking to fail.!! Contributed by Tobias Burnus <burnus@gcc.gnu.org>!module chk_gfortranimplicit nonetype tinteger xend type tcontainsfunction is_gfortran()logical is_gfortraninterface assignment(=)module procedure assign_tend interface assignment(=)type(t) y(3)y%x = (/1,2,3/)y = y((/2,3,1/))is_gfortran = y(3)%x == 1end function is_gfortranelemental subroutine assign_t(lhs,rhs)type(t), intent(in) :: rhstype(t), intent(out) :: lhslhs%x = rhs%xend subroutine assign_tend module chk_gfortranprogram fireuse chk_gfortranimplicit noneif(.not. is_gfortran()) call abort()end program fire! { dg-final { cleanup-modules "chk_gfortran" } }
