tests/spec/unit/regression/checker_mzn_check_var.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | extra_files: |
| 5 | - checker_mzn_check_var.mzc.mzn |
| 6 | expected: |
| 7 | - !Result |
| 8 | solution: !Solution |
| 9 | _checker: !Trim "Ok" |
| 10 | ***/ |
| 11 | |
| 12 | % Previously the mzn_check_var annotation for y went missing from the output |
| 13 | % and so was not passed to the checker |
| 14 | |
| 15 | predicate foo() = y = 1; |
| 16 | var bool: x :: output = foo(); |
| 17 | var 1..2: y; |