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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail3290.d
blob
2b6bbac3f19f8cc1773401270fc0c7b2316bf957
1
// https://issues.dlang.org/show_bug.cgi?id=3290
2
/*
3
TEST_OUTPUT:
4
---
5
fail_compilation/fail3290.d(12): Error: argument type mismatch, `const(int)` to `ref int`
6
---
7
*/
8
9
void
main
()
10
{
11
const
(
int
)[]
array
;
12
foreach
(
ref int
i
;
array
) {
13
//i = 42;
14
}
15
}