Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail44.d
blob: 826bdba6af104a34e4f461600f24070a09f8e337 [
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
];
}
}