tests/spec/unit/regression/test_bug_494.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | check_against: [] |
| 4 | expected: |
| 5 | - !Result |
| 6 | solution: !Solution |
| 7 | x1: 1 |
| 8 | x2: |
| 9 | - - 0 |
| 10 | status: SATISFIED |
| 11 | extra_files: [] |
| 12 | markers: [] |
| 13 | name: '' |
| 14 | options: |
| 15 | all_solutions: false |
| 16 | solvers: |
| 17 | - gecode |
| 18 | type: solve |
| 19 | ***/ |
| 20 | |
| 21 | var 1..2: x1; |
| 22 | array[1..1,1..1] of var 0..1 : x2; |
| 23 | constraint array2set(x2[1,..]) subset 0..1; |
| 24 | constraint 0 <= x2[1,x1]; |