dmd/compiler/test/fail_compilation/ice15002.d
2022-07-09 18:53:07 +02:00

10 lines
230 B
D

/*
TEST_OUTPUT:
---
fail_compilation/ice15002.d(10): Error: array index 5 is out of bounds `x[0 .. 3]`
fail_compilation/ice15002.d(10): Error: array index 5 is out of bounds `x[0 .. 3]`
---
*/
int[][3] x = [];
int* p = &x[5][0];