☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail44.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail44.d
code
plain
raw
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
}