Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail306.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail306.d(11): Error: cannot perform array operations on `void[]` arrays
5 ---
6 */
7
8 void bar()
9 {
10 void [] x;
11 x[] = -x[];
12 }