Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=23674
2
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test23674.d(14): Error: array index 2 is out of bounds `arr[0 .. 2]`
7 fail_compilation/test23674.d(14): Error: array index 3 is out of bounds `arr[0 .. 2]`
8 ---
9 */
10
11 void main()
12 {
13 string[2] arr;
14 assert(arr[2] == arr[3]);
15 }