URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [use_7.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! Renaming of operatorsmodule ztype myTinteger :: tend type myTinterface operator(+)module procedure sub2end interfacecontainsfunction sub2(x)type(myT) :: sub2type(myT),intent(in) :: xsub2%t = x%t + 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 z, operator(-) => operator(+) ! { dg-error "Syntax error in USE statement" }use z, operator(.op.) => operator(+) ! { dg-error "Syntax error in USE statement" }use x, only : bar => operator(.addfive.) ! { dg-error "Syntax error in USE statement" }use y, operator(.my.) => sub ! { dg-error "Syntax error in USE statement" }use y, operator(+) => operator(.addfive.) ! { dg-error "Syntax error in USE statement" }end! { dg-final { cleanup-modules "x y z" } }
