mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Branches: main
compiler/loop_inv.m:
Fix a bug. An `unused' variable in an invariant call was treated
like an output variable and added to the invariant variables list,
and hoisted.
tests/hard_coded/Mercury.options:
tests/hard_coded/loop_inv_test3.exp:
tests/hard_coded/loop_inv_test3.m:
Add test case.
2 lines
51 B
Plaintext
2 lines
51 B
Plaintext
[100, 100, 100, 100, 100, 100, 100, 100, 100, 100]
|