Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail9572.d(10): Error: index type `ubyte` cannot cover index range 0..300
5 ---
6 */
7
8 void main() {
9 int[300] data;
10 foreach (ubyte i, x; data) {}
11 }