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 47871363d, druntime, c52e28b7, phobos 99e9c1b77.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail44.d
blob
826bdba6af104a34e4f461600f24070a09f8e337
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail44.d(18): Error: expression `bar[i]` is `void` and has no value
5
---
6
*/
7
8
void
Foo
()
9
{
10
void
[]
bar
;
11
void
[]
foo
;
12
13
bar
.
length
=
50
;
14
foo
.
length
=
50
;
15
16
for
(
size_t i
=
0
;
i
<
50
;
i
++)
17
{
18
foo
[
i
] =
bar
[
i
];
19
}
20
}