tests/spec/unit/regression/bug536.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | options: |
| 5 | -O2: true |
| 6 | expected: !Result |
| 7 | solution: !Solution |
| 8 | x: [1] |
| 9 | ***/ |
| 10 | |
| 11 | % Test for issue #536 |
| 12 | % Previously with -O2, MiniZinc copied the [a[1]] ArrayLit and incorrectly set it as flat |
| 13 | |
| 14 | array [1..1] of var 1..1: x; |
| 15 | constraint [x[1]][1] = 1; |