Files
mercury/tests/invalid_nodepend/errors_1.err_exp
Zoltan Somogyi 5f4a14a189 Clarify the diagnostics about missing section markers.
compiler/parse_module.m:
    When complaining about missing ":- interface"/":- implementation" markers,
    reword the diagnostic to clarify that these should come after
    the initial ":- module" declaration.

tests/invalid_make_int/missing_initial_section.int_err_exp:
tests/invalid_nodepend/bigtest.err_exp:
tests/invalid_nodepend/errors_1.err_exp:
tests/invalid_nodepend/errors_2.err_exp:
tests/invalid_nodepend/errors_3.err_exp:
tests/invalid_nodepend/funcs_as_preds.err_exp:
tests/invalid_nodepend/invalid_main.err_exp:
tests/invalid_nodepend/no_exports.err_exp:
tests/invalid_nodepend/occurs.err_exp:
tests/invalid_nodepend/prog_io_erroneous.err_exp:
tests/invalid_nodepend/types.err_exp:
tests/invalid_nodepend/vars_in_wrong_places.err_exp:
    Expect the updated wording.
2026-02-15 16:20:34 +11:00

2.9 KiB

errors_1.m:008: Warning: the interface of module `errors_1' does not export
errors_1.m:008: anything.
errors_1.m:012: Error: the contents of module `errors_1' after the `:- module'
errors_1.m:012: declaration should start with either an `:- interface'
errors_1.m:012: declaration or an `:- implementation' declaration.
errors_1.m:012: The following assumes that the missing declaration is an
errors_1.m:012: `:- implementation' declaration.
errors_1.m:030: Error: `:- mode' declaration for predicate
errors_1.m:030: `mode_declaration_without_pred_declaration'/0 without a
errors_1.m:030: corresponding `:- pred' declaration.
errors_1.m:034: Error: `:- mode' declaration for predicate
errors_1.m:034: `missing_pred_declaration'/0 without a corresponding
errors_1.m:034: `:- pred' declaration.
errors_1.m:040: Error: clause for predicate
errors_1.m:040: `clause_without_pred_or_mode_declaration'/0 without a
errors_1.m:040: corresponding `:- pred' declaration.
errors_1.m:053: Error: the function symbol `a'/0 occurs more than once in the
errors_1.m:053: definition of type constructor
errors_1.m:053: `type_with_multiply_defined_ctors'/0.
errors_1.m:055: Error: the function symbol `f'/1 occurs more than once in the
errors_1.m:055: definition of type constructor
errors_1.m:055: `type_with_multiply_defined_ctors'/0.
errors_1.m:058: In the first argument of function symbol `f' of the type
errors_1.m:058: `du_type_which_references_undefined_type'/0:
errors_1.m:058: error: the type `undefined_type'/0 is undefined.
errors_1.m:060: In definition of type
errors_1.m:060: `eqv_type_which_references_undefined_type'/0:
errors_1.m:060: error: the type `undefined_type'/0 is undefined.
errors_1.m:062: Error: equivalence type `errors_1.circular_eqv_type'/0 is
errors_1.m:062: circular.
errors_1.m:064: Error: equivalence type
errors_1.m:064: `errors_1.indirectly_circular_eqv_type_1'/0 is circular.
errors_1.m:065: Error: equivalence type
errors_1.m:065: `errors_1.indirectly_circular_eqv_type_2'/0 is circular.
errors_1.m:079: In clause for predicate `pred_with_unresolved_polymorphism'/0:
errors_1.m:079: warning: variable `Arg' occurs only once in this scope.
errors_1.m:095: In clause for predicate `pred_with_singleton_vars'/1:
errors_1.m:095: warning: variable `X' occurs only once in this scope.
For more information, recompile with `-E'.