Files
mercury/tests/invalid_nodepend/bigtest.err_exp
Zoltan Somogyi 41d133b8ad Update the "no export" criteria and message.
compiler/check_module_interface.m:
    Generate a "this module does not export anything" warning for modules
    that contain only single include_module declaration, since such modules
    could be deleted with no effect.

    Change the warning message to list every kind of declaration/definition
    that does not depend on the presence of other kinds of declarations or
    definitions.

deep_profiler/Mercury.options:
    Shut up this warning for mdprof_fb, since right now, it contains
    only a single include_module, even it is designed to later contain more.

tests/invalid/empty_interface.err_exp:
tests/invalid/typeclass_missing_det_3.err_exp:
tests/invalid_nodepend/bigtest.err_exp:
tests/invalid_nodepend/duplicate_modes.err_exp:
tests/invalid_nodepend/errors2.err_exp:
tests/invalid_nodepend/no_exports.err_exp:
tests/invalid_nodepend/prog_io_erroneous.err_exp:
tests/invalid_nodepend/typeclass_test_11.err_exp:
tests/invalid_nodepend/vars_in_wrong_places.err_exp:
    Expect the updated wording of the warning message.
2022-04-05 10:32:10 +10:00

27 lines
1.7 KiB
Plaintext

bigtest.m:005: Error: module must start with a `:- module' declaration.
bigtest.m:005: Error: module `bigtest' should start with either an
bigtest.m:005: `:- interface' or an `:- implementation' declaration.
bigtest.m:005: The following assumes that the missing declaration is an
bigtest.m:005: `:- implementation' declaration.
bigtest.m:005: Warning: the interface of module `bigtest' does not export
bigtest.m:005: anything.
bigtest.m:005: To be useful, a module should export something. A file should
bigtest.m:005: contain at least one declaration other than `:- import_module'
bigtest.m:005: in its interface section(s). This would normally be a
bigtest.m:005: `:- pred' or `:- func' declaration, or a `:- type', `:- inst',
bigtest.m:005: `:- mode', `:- typeclass' or `:- instance' definition.
bigtest.m:005: Error: `export_sym' is not a valid declaration type.
bigtest.m:006: Error: `export_pred' is not a valid declaration type.
bigtest.m:007: Error: `export_type' is not a valid declaration type.
bigtest.m:009: Error: clause for predicate `fact'/0
bigtest.m:009: without corresponding `:- pred' declaration.
bigtest.m:009: Inferred :- pred fact.
bigtest.m:010: Syntax error at token ':-': operator precedence error.
bigtest.m:013: Error: `incorrect_declaration' is not a valid declaration type.
bigtest.m:015: Error: no mode declaration for predicate `p'/1.
bigtest.m:015: (Use `--infer-modes' to enable mode inference.)
bigtest.m:030: Error: in definitions of equivalence types, the type name must
bigtest.m:030: be followed by `==', not `='.
bigtest.m:030: On the left hand side of type definition: error: type parameters
bigtest.m:030: must be variables, but `t3' and `(t1 + t2)' are not.