Commit Graph

2 Commits

Author SHA1 Message Date
Zoltan Somogyi
40ff19acbb Standardize mode names in argument lists.
compiler/hlds_error_util.m:
    When converting lists of arguments mode to strings for error messages,
    replace from/to pairs of insts that stand for standard modes with the
    names of those standard modes.

compiler/prog_mode.m:
    Add a utility function for doing that standardization.

tests/invalid/io_in_ite_cond.err_exp:
tests/invalid_manual/gh118.err_exp:
    Expect the standard forms of modes.

tests/invalid_manual/Mmakefile:
    Specify the grade for the test independently of the grade of the
    workspace or of the last bootcheck. Make the Mercury compiler flags
    specific to the test.
2023-03-19 00:24:25 +11:00
Zoltan Somogyi
d9046a19d2 Add a test case for github issue #118.
tests/invalid_manual/gh118.err_exp:
tests/invalid_manual/gh118.gh118_helper.m:
tests/invalid_manual/gh118.m:
    As above. The invalid_manual directory is a new test directory.
    Its tests are not executed by tools/bootcheck.

tests/invalid_manual/Mmakefile:
    Add a make rule for executing the test.

tests/invalid_manual/Mercury.options:
    Add this options file (currently empty).

compiler/det_report.m:
    Redirect comments to the actual location of the test case.
2023-03-18 21:33:54 +11:00