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
d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test20136.d
blob
a5fb8e3d504e4e21810fecd5918f565b7fda7cbe
1
// https://issues.dlang.org/show_bug.cgi?id=20136
2
class
Context
3
{
4
size_t
[
const
(
Key
)]
aa
;
5
bool
checkAll
;
6
}
7
8
struct
Key
9
{
10
Context context
;
11
int
i
;
12
bool
opEquals
(
ref const
Key other
)
const
13
{
14
if
(
context
.
checkAll
&&
i
!=
other
.
i
)
15
return false
;
16
return true
;
17
}
18
}