Debian Codegraph @

tests/spec/unit/general/array_access_out_of_bounds_1.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Error
5 regex: .*array access out of bounds, array `x' has index set A\.\.B, but given index is C.*
6 ***/
7
8 enum Foo = {A, B, C};
9 array [{A, B}] of int: x = [1, 2];
10 any: v = x[C];