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

43 lines
2.5 KiB
Plaintext

bad_foreign_export.m:020: Error: a `:- pragma foreign_export' declaration must
bad_foreign_export.m:020: have exactly three arguments.
bad_foreign_export.m:024: In the second argument of `:- pragma foreign_export'
bad_foreign_export.m:024: declaration:
bad_foreign_export.m:024: error: expected a symbol name, got `11111'.
bad_foreign_export.m:028: In the third argument of `:- pragma foreign_export'
bad_foreign_export.m:028: declaration:
bad_foreign_export.m:028: error: expected a non-empty string for the foreign
bad_foreign_export.m:028: language name of the exported procedure, got
bad_foreign_export.m:028: `22222'.
bad_foreign_export.m:032: In the first argument of `:- pragma foreign_export'
bad_foreign_export.m:032: declaration:
bad_foreign_export.m:032: error: expected the name of a foreign language, got
bad_foreign_export.m:032: `"InvalidLanguage"'.
bad_foreign_export.m:032: The valid languages are c, C, csharp, C#, java and
bad_foreign_export.m:032: Java.
bad_foreign_export.m:037: In the first argument of `:- pragma foreign_export'
bad_foreign_export.m:037: declaration:
bad_foreign_export.m:037: error: expected the name of a foreign language, got
bad_foreign_export.m:037: `"InvalidLanguage"'.
bad_foreign_export.m:037: The valid languages are c, C, csharp, C#, java and
bad_foreign_export.m:037: Java.
bad_foreign_export.m:038: In the second argument of `:- pragma foreign_export'
bad_foreign_export.m:038: declaration:
bad_foreign_export.m:038: error: expected a symbol name, got `3333'.
bad_foreign_export.m:039: In the third argument of `:- pragma foreign_export'
bad_foreign_export.m:039: declaration:
bad_foreign_export.m:039: error: expected a non-empty string for the foreign
bad_foreign_export.m:039: language name of the exported procedure, got
bad_foreign_export.m:039: `4444'.
bad_foreign_export.m:044: In the third argument of `:- pragma foreign_export'
bad_foreign_export.m:044: declaration:
bad_foreign_export.m:044: error: expected a non-empty string for the foreign
bad_foreign_export.m:044: language name of the exported procedure, got an
bad_foreign_export.m:044: empty string.
bad_foreign_export.m:046: In the first argument of `:- pragma foreign_export'
bad_foreign_export.m:046: declaration:
bad_foreign_export.m:046: error: expected the name of a foreign language, got
bad_foreign_export.m:046: `"Erlang"'.
bad_foreign_export.m:046: The valid languages are c, C, csharp, C#, java and
bad_foreign_export.m:046: Java.
bad_foreign_export.m:046: Support for Erlang has been discontinued.