Files
mercury/tests/hard_coded/lco_pack_args_2.exp
Zoltan Somogyi d03ee8215c Fix two bugs in last call modulo constructor.
compiler/lco.m:
    Fix the first bug, which was a compiler abort when lco tried to take
    the address of a sub-word-sized argument. Don't allow this.

    Don't allow the address to be taken of double-word arguments either,
    until I can test whether this works.

    Make a switch complete.

compiler/unify_gen.m:
    Fix the second bug, which caused a compiler abort if we tried to take
    the address of more than one field of a memory cell.

    Factor out some common code.

tests/hard_coded/lco_pack_args_2.{m,exp}:
    New test case for the first bug.

tests/hard_coded/lco_pack_args_3.{m,exp}:
    New test case for the second bug.

tests/hard_coded/Mercury.options:
tests/hard_coded/Mmakefile:
    Enable the new test cases.
2018-03-08 21:20:48 +11:00

2 lines
109 B
Plaintext

thing(enum1, enum4, thing(enum2, enum4, thing(enum3, enum5, nil, enum3, enum3), enum2, enum2), enum1, enum1)