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, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail4510.d
blob
64a8d45afd138ee14bf5f0c4abdb4d71f7179195
1
// https://issues.dlang.org/show_bug.cgi?id=4510
2
/*
3
TEST_OUTPUT:
4
---
5
fail_compilation/fail4510.d(12): Error: argument type mismatch, `float` to `ref double`
6
---
7
*/
8
9
void
main
()
10
{
11
float
[]
arr
= [
1.0
,
2.5
,
4.0
];
12
foreach
(
ref double
elem
;
arr
) {
13
//elem /= 2;
14
}
15
}