repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
userdef_operator_2.f90
blob
83392c6b6c391886758f91195ec8025425730fe4
1
! { 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