mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
This was Mantis bug #383. compiler/ml_string_switch.m: For model_non switches in MLDS grades, a failure is indicated by a fall through. This can be represented by an empty sequence of MLDS statements, but the code that generated string trie switches took such an empty sequence to mean that the switch could not fail. Fix this incorrect assumption. tests/hard_coded/bug383.{m,inp,exp}: A regression test for the bug. tests/hard_coded/Mmakefile: Enable the new test case.
9 lines
435 B
Plaintext
9 lines
435 B
Plaintext
%-----------------------------------------------------------------------------%
|
|
% The Cadmium stage of the Zinc compiler for high-level Zinc to CoreZinc.
|
|
%-----------------------------------------------------------------------------%
|
|
|
|
transform main = zinc2merc.high_level.
|
|
|
|
%-----------------------------------------------------------------------------%
|
|
%-----------------------------------------------------------------------------%
|