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

54 lines
3.2 KiB
Plaintext

bad_foreign_enum.m:044: Error: a `:- pragma foreign_enum' declaration must have
bad_foreign_enum.m:044: exactly three arguments.
bad_foreign_enum.m:048: In the first argument of `:- pragma foreign_enum'
bad_foreign_enum.m:048: declaration:
bad_foreign_enum.m:048: error: expected the name of a foreign language, got
bad_foreign_enum.m:048: `"InvalidLanguage"'.
bad_foreign_enum.m:048: The valid languages are c, C, csharp, C#, java and
bad_foreign_enum.m:048: Java.
bad_foreign_enum.m:048: In the third argument of `:- pragma foreign_enum'
bad_foreign_enum.m:048: declaration:
bad_foreign_enum.m:048: error: the list mapping constructors to foreign
bad_foreign_enum.m:048: values must not be empty.
bad_foreign_enum.m:052: In the second argument of `:- pragma foreign_enum'
bad_foreign_enum.m:052: declaration:
bad_foreign_enum.m:052: error: expected `type_name/type_arity', got
bad_foreign_enum.m:052: `vegetable'.
bad_foreign_enum.m:059: In the first argument of `:- pragma foreign_enum'
bad_foreign_enum.m:059: declaration:
bad_foreign_enum.m:059: error: expected the name of a foreign language, got
bad_foreign_enum.m:059: `"InvalidLanguage"'.
bad_foreign_enum.m:059: The valid languages are c, C, csharp, C#, java and
bad_foreign_enum.m:059: Java.
bad_foreign_enum.m:060: In the second argument of `:- pragma foreign_enum'
bad_foreign_enum.m:060: declaration:
bad_foreign_enum.m:060: error: expected `type_name/type_arity', got `meat'.
bad_foreign_enum.m:061: In the third argument of `:- pragma foreign_enum'
bad_foreign_enum.m:061: declaration:
bad_foreign_enum.m:061: error: the list mapping constructors to foreign
bad_foreign_enum.m:061: values must not be empty.
bad_foreign_enum.m:067: Error: expected a mapping element of the form
bad_foreign_enum.m:067: `possibly_qualified_name - string', got `chicken'.
bad_foreign_enum.m:074: In `:- pragma foreign_enum' mapping constructor name:
bad_foreign_enum.m:074: error: atom expected at "goose".
bad_foreign_enum.m:081: Error: expected a mapping element of the form
bad_foreign_enum.m:081: `possibly_qualified_name - string', got `"goose"'.
bad_foreign_enum.m:082: Error: expected a mapping element of the form
bad_foreign_enum.m:082: `possibly_qualified_name - string', got `turkey'.
bad_foreign_enum.m:083: Error: expected a mapping element of the form
bad_foreign_enum.m:083: `possibly_qualified_name - string', got `X'.
bad_foreign_enum.m:087: In the first argument of `:- pragma foreign_enum'
bad_foreign_enum.m:087: declaration:
bad_foreign_enum.m:087: error: expected the name of a foreign language, got
bad_foreign_enum.m:087: `"Erlang"'.
bad_foreign_enum.m:087: The valid languages are c, C, csharp, C#, java and
bad_foreign_enum.m:087: Java.
bad_foreign_enum.m:087: Support for Erlang has been discontinued.
bad_foreign_enum.m:088: In the second argument of `:- pragma foreign_enum'
bad_foreign_enum.m:088: declaration:
bad_foreign_enum.m:088: error: expected `type_name/type_arity', got `meat'.
bad_foreign_enum.m:089: In the third argument of `:- pragma foreign_enum'
bad_foreign_enum.m:089: declaration:
bad_foreign_enum.m:089: error: the list mapping constructors to foreign
bad_foreign_enum.m:089: values must not be empty.