OpenCores
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] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR 45338 - no ICE when cmp is not used explicitly.
3
! Test case by Simon Smart
4
module test_mod
5
  implicit none
6
contains
7
  subroutine test_fn (cmp)
8
    interface operator(.myop.)
9
       pure function cmp (a, b) result(ret)
10
         integer, intent(in) :: a, b
11
         logical ret
12
       end function cmp
13
    end interface
14
    integer :: a, b
15
    print*, a .myop. b
16
  end subroutine test_fn
17
end module test_mod
18
 
19
! { dg-final { cleanup-modules "test_mod" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.