mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
1. Fix an abort in the MLDS backend involving switches on uints.
2. Make string.string/1 handle uints.
compiler/ml_switch_gen.m:
Handle uints properly in a spot.
library/string.to_string.m:
Make string.string/1 handle uint values.
tests/hard_coded/Mmakefile:
tests/hard_coded/uint_switch_test.{m,exp}:
Add a test case.
10 lines
190 B
Plaintext
10 lines
190 B
Plaintext
foo(0u, _) ==> <<FALSE>>
|
|
foo(1u, "one")
|
|
foo(2u, _) ==> <<FALSE>>
|
|
foo(3u, "three")
|
|
foo(4u, _) ==> <<FALSE>>
|
|
foo(5u, "five")
|
|
foo(6u, _) ==> <<FALSE>>
|
|
foo(7u, "seven")
|
|
foo(8u, _) ==> <<FALSE>>
|