Files
mercury/tests/invalid/trailed_mutable.err_exp2
Zoltan Somogyi bf5d7b0ef8 Reenable two tests.
tests/invalid/Mmakefile:
    Renenable the undef_type test, which got accidentally disabled
    in oct 2023.

    Execute the trailed_mutable test in both trailing and non-trailing grades.
    We used to enable it *only* in trailing grades, but had its only .err_exp
    file set to the contents expected in *non*-trailing grades.

tests/invalid/undef_type.err_exp:
    Update this file for recent changes to diagnostics.

tests/invalid/trailed_mutable.m:
    Modify the code of this test to ensure that we can expect
    at least one diagnostic in both trailing and non-trailing grades.

tests/invalid/trailed_mutable.err_exp:
tests/invalid/trailed_mutable.err_exp2:
    Add the .err_exp2 file, and fill each of these files with the
    expected output for non-trailing and trailing grades respectively.
2024-06-02 03:22:21 +10:00

463 B

trailed_mutable.m:019: In clause for predicate `initialise_mutable_global2'/0:
trailed_mutable.m:019: in argument 1 of call to predicate
trailed_mutable.m:019: `trailed_mutable.set_global2'/1:
trailed_mutable.m:019: type error: variable `X' has type
trailed_mutable.m:019: float;
trailed_mutable.m:019: expected type was
trailed_mutable.m:019: int.
For more information, recompile with `-E'.