URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [use_6.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-std=f95" }! Renaming of operatorsmodule zinterface operator(.addfive.)module procedure sub2end interfacecontainsfunction sub2(x)integer :: subinteger,intent(in) :: xsub2 = x + 5end function sub2end module zmodule yinterface operator(.addfive.)module procedure subend interfacecontainsfunction sub(x)integer :: subinteger,intent(in) :: xsub = x + 15end function subend module ymodule xinterface operator(.addfive.)module procedure subend interfacecontainsfunction sub(x)integer :: subinteger,intent(in) :: xsub = x + 25end function subend module xuse x, only : operator(.bar.) => operator(.addfive.) ! { dg-error "Fortran 2003: Renaming operators in USE statements" }use y, operator(.my.) => operator(.addfive.) ! { dg-error "Fortran 2003: Renaming operators in USE statements" }use zend! { dg-final { cleanup-modules "x y z" } }
