Commit Graph

2 Commits

Author SHA1 Message Date
Peter Wang
150cf5233c Fix test failures with intermodule optimisation.
tests/invalid/Mmakefile:
    Add type_error_use_module to list of REDIRECT_OPT_ERROR_MODULES
    as it produces error messages while making the .opt file.

tests/invalid/multiply_star.m:
    Add description of .err_exp files.

tests/invalid/multiply_star.err_exp:
    Update line numbers.

tests/invalid/multiply_star.err_exp2:
    Add expected error output when compiling with intermodule
    optimisation.
2021-05-05 12:24:03 +10:00
Zoltan Somogyi
fee64bfc75 Fix a misleading error message.
compiler/prog_out.m:
    We a program used '*' to mean integer multiplication but didn't import
    int.m, we used to print a misleading error message that said
    "undefined symbol `star/2'. This was because we mangled the "*"
    into "star" when printing the cons_id. While this is what you want
    to do when printing cons_ids in e.g. comments in generated C code,
    it is not what we want when printing error messages. Fix this.

tests/invalid/multiply_star.{m,err_exp}:
    Add a regression test for this problem.

tests/invalid/Mmakefile:
    Enable the new test.
2017-05-20 21:13:04 +02:00