tests/spec/unit/regression/bug_629.mzn
raw| 1 | /*** |
| 2 | --- !Test |
| 3 | expected: !FlatZinc bug_629.fzn |
| 4 | options: |
| 5 | -O1: true |
| 6 | solvers: [cbc] |
| 7 | type: compile |
| 8 | --- !Test |
| 9 | expected: !FlatZinc bug_629.fzn |
| 10 | options: |
| 11 | -O2: true |
| 12 | solvers: [cbc] |
| 13 | type: compile |
| 14 | ***/ |
| 15 | |
| 16 | % Bug related to mishandling of _globalDir path when -O2 is used |
| 17 | |
| 18 | var bool: b; |
| 19 | var 0..1: x = if b then 1 else 0 endif; |