Sign in
gnu
/
gcc
/
e547d1341b1fe90672c9b982c4a98f8197237bb7
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail44.d
blob: b8916a009912062d8a86ff6ed41525b385449412 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail44.d(18): Error: expression bar[i] is void and has no value
---
*/
void
Foo
()
{
void
[]
bar
;
void
[]
foo
;
bar
.
length
=
50
;
foo
.
length
=
50
;
for
(
size_t
i
=
0
;
i
<
50
;
i
++)
{
foo
[
i
]
=
bar
[
i
];
}
}