tests/spec/unit/regression/bug212.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode, chuffed] |
| 4 | expected: |
| 5 | - !Result |
| 6 | solution: !Solution {} |
| 7 | ***/ |
| 8 | |
| 9 | % A regression test for bug #212. In r13904, the FlatZinc optimizer was |
| 10 | % aborting on the string literal annotation argument below. |
| 11 | |
| 12 | annotation f(string:x); |
| 13 | |
| 14 | var int : x; |
| 15 | var int : y; |
| 16 | constraint (x != y) :: f("abc"); |
| 17 | |
| 18 | solve satisfy; |