URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [userdef_operator_2.f90] - Rev 708
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
! PR 45338 - no ICE when cmp is not used explicitly.
! Test case by Simon Smart
module test_mod
implicit none
contains
subroutine test_fn (cmp)
interface operator(.myop.)
pure function cmp (a, b) result(ret)
integer, intent(in) :: a, b
logical ret
end function cmp
end interface
integer :: a, b
print*, a .myop. b
end subroutine test_fn
end module test_mod
! { dg-final { cleanup-modules "test_mod" } }
Go to most recent revision | Compare with Previous | Blame | View Log