Debian Codegraph @

tests/spec/unit/general/array_access_out_of_bounds_2.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Error
5 regex: .*array access out of bounds, array `x' is empty.*
6 ***/
7
8 array [int] of int: x = [];
9 any: v = x[1];