Files
mercury/tests/invalid_nodepend/predmode.err_exp
Zoltan Somogyi 6413b4fb08 Create invalid_nodepend and invalid_onlydepend.
tests/invalid_onlydepend:
    Move the one test case in tests/invalid for which we want to check
    the error messages generated during the generation of dependencies
    to this new test directory.

tests/invalid_nodepend:
    Move all test cases in tests/invalid which get errors during the
    generation of dependencies but for which we want to check the error
    messages generated during normal compilation to this new test directory.

tests/invalid_nodepend/Mmakefile:
tests/invalid_nodepend/Mercury.options:
tests/invalid_onlydepend/Mmakefile:
tests/invalid_onlydepend/Mercury.options:
    Versions of the same files in tests/invalid, but containing only
    the entries relevant to the moved test cases.

tests/invalid/Mmakefile:
tests/invalid/Mercury.options:
    Delete the entries that refer to the moved test cases.

tests/README:
    Document the two new test directories.

tools/bootcheck:
    Add invalid_onlydepend and invalid_nodepend to the list of
    test directories.
2021-07-28 00:59:04 +10:00

15 lines
697 B
Plaintext

predmode.m:009: Error: some but not all arguments have modes.
predmode.m:009: The argument without a mode is the second.
predmode.m:017: In `:- pred' declaration:
predmode.m:017: in the first argument:
predmode.m:017: error: `1' is not a type.
predmode.m:017: In `:- pred' declaration:
predmode.m:017: in the first argument:
predmode.m:017: error: an integer such as `2' cannot be a valid mode.
predmode.m:017: In `:- pred' declaration:
predmode.m:017: in the second argument:
predmode.m:017: error: `"bad"' is not a type.
predmode.m:017: In `:- pred' declaration:
predmode.m:017: in the second argument:
predmode.m:017: error: a string such as `"worse"' cannot be a valid mode.