Files
mercury/tests/hard_coded/uint_switch_test.exp
Julien Fischer e9b0c489d2 Two fixes for uint support.
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.
2017-05-24 09:59:01 +10:00

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>>