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

29 lines
1.8 KiB
Plaintext

bad_mutable.m:009: Error: `:- mutable' declaration in module interface.
bad_mutable.m:017: In declaration for mutable `not_a_type':
bad_mutable.m:017: error: undefined type `no_type'/0.
bad_mutable.m:019: Error: the inst `special_ground' is not defined.
bad_mutable.m:019: In declaration for mutable `not_an_inst':
bad_mutable.m:019: error: undefined inst `special_ground'/0.
bad_mutable.m:021: Error in `:- mutable' declaration:
bad_mutable.m:021: unrecognised attribute `bad_attrib'.
bad_mutable.m:023: Error: the type in a `:- mutable' declaration may not
bad_mutable.m:023: contain variables, but `list(T)' does.
bad_mutable.m:025: Error: attributes `untrailed' and `trailed' conflict.
bad_mutable.m:028: Error: attributes `foreign_name("C", "one")' and
bad_mutable.m:028: `foreign_name("C", "two")' conflict.
bad_mutable.m:030: Error: attributes `thread_local' and `trailed' conflict.
bad_mutable.m:032: Error: attributes `constant' and `thread_local' conflict.
bad_mutable.m:039: Error: in the expansion of the named inst
bad_mutable.m:039: `bad_mutable.t1'/0:
bad_mutable.m:039: the inst `unique' may not appear in `:- mutable'
bad_mutable.m:039: declarations.
bad_mutable.m:041: In fifth argument of `:- mutable' declaration: error:
bad_mutable.m:041: expected a list of attributes, got `thread_local'.
bad_mutable.m:043: Error: attributes `constant' and `trailed' conflict.
bad_mutable.m:045: Error: attribute `untrailed' is repeated.
bad_mutable.m:049: Error: attribute `constant' is repeated.
bad_mutable.m:050: Error: attribute `constant' is repeated.
bad_mutable.m:052: Error: attribute `thread_local' conflicts with the default,
bad_mutable.m:052: which is that updates are trailed. You need to specify the
bad_mutable.m:052: `untrailed' attribute explicitly.