Files
mercury/tests/invalid_nodepend/bad_foreign_decl.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

51 lines
3.1 KiB
Plaintext

bad_foreign_decl.m:017: Error: a `:- pragma foreign_decl' declaration requires
bad_foreign_decl.m:017: at least two arguments (a language specification and
bad_foreign_decl.m:017: the foreign language declaration itself).
bad_foreign_decl.m:021: Error: a `:- pragma foreign_decl' declaration may have
bad_foreign_decl.m:021: at most three arguments (a language specification, a
bad_foreign_decl.m:021: local/exported indication, and the foreign language
bad_foreign_decl.m:021: declaration itself).
bad_foreign_decl.m:025: In the first argument of `:- pragma foreign_decl'
bad_foreign_decl.m:025: declaration:
bad_foreign_decl.m:025: error: expected the name of a foreign language, got
bad_foreign_decl.m:025: `"InvalidLanguage"'.
bad_foreign_decl.m:025: The valid languages are c, C, csharp, C#, java and
bad_foreign_decl.m:025: Java.
bad_foreign_decl.m:029: In the second argument of `:- pragma foreign_decl'
bad_foreign_decl.m:029: declaration:
bad_foreign_decl.m:029: error: expected either a string containing code, or a
bad_foreign_decl.m:029: term of the form `include_file(...)' naming a file to
bad_foreign_decl.m:029: include, got `1234'.
bad_foreign_decl.m:033: Error: the second argument of a
bad_foreign_decl.m:033: `:- pragma foreign_decl' declaration must be either
bad_foreign_decl.m:033: `local' or `exported': got `lcoal'.
bad_foreign_decl.m:037: Error: the second argument of a
bad_foreign_decl.m:037: `:- pragma foreign_decl' declaration must be either
bad_foreign_decl.m:037: `local' or `exported': got `4444'.
bad_foreign_decl.m:041: In the second argument of `:- pragma foreign_decl'
bad_foreign_decl.m:041: declaration:
bad_foreign_decl.m:041: error: expected either a string containing code, or a
bad_foreign_decl.m:041: term of the form `include_file(...)' naming a file to
bad_foreign_decl.m:041: include, got `include_file(5555)'.
bad_foreign_decl.m:051: In the first argument of `:- pragma foreign_decl'
bad_foreign_decl.m:051: declaration:
bad_foreign_decl.m:051: error: expected the name of a foreign language, got
bad_foreign_decl.m:051: `"InvalidLanguage"'.
bad_foreign_decl.m:051: The valid languages are c, C, csharp, C#, java and
bad_foreign_decl.m:051: Java.
bad_foreign_decl.m:052: Error: the second argument of a
bad_foreign_decl.m:052: `:- pragma foreign_decl' declaration must be either
bad_foreign_decl.m:052: `local' or `exported': got `lcoal'.
bad_foreign_decl.m:053: In the third argument of `:- pragma foreign_decl'
bad_foreign_decl.m:053: declaration:
bad_foreign_decl.m:053: error: expected either a string containing code, or a
bad_foreign_decl.m:053: term of the form `include_file(...)' naming a file to
bad_foreign_decl.m:053: include, got `7777'.
bad_foreign_decl.m:056: In the first argument of `:- pragma foreign_decl'
bad_foreign_decl.m:056: declaration:
bad_foreign_decl.m:056: error: expected the name of a foreign language, got
bad_foreign_decl.m:056: `"Erlang"'.
bad_foreign_decl.m:056: The valid languages are c, C, csharp, C#, java and
bad_foreign_decl.m:056: Java.
bad_foreign_decl.m:056: Support for Erlang has been discontinued.