mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
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.
630 B
630 B
trailed_mutable.m:018: Error: trailed `:- mutable' declaration in non-trailing
trailed_mutable.m:018: grade.
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'.
trailed_mutable.m:018: grade.
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'.