Files
mercury/tests/invalid_make_int/bad_mutable_int.m
Zoltan Somogyi dfc4e4e378 Fix a seventh batch of C# invalid test failures.
tests/invalid_make_int/bad_finalise_int.{m,int_err_exp}:
tests/invalid_make_int/bad_initialise_int.{m,int_err_exp}:
tests/invalid_make_int/bad_mutable_int.{m,int_err_exp}:
tests/invalid_make_int/bad_foreign_type_int.{m,int_err_exp}:
    New test cases containing the discoverable-at-interface-file-creation-time
    parts of the correspond test cases in tests/invalid_nodepend without
    the _int suffix on the test case name.

tests/invalid_make_int/missing_initial_section.{m,int_err_exp}:
    New test case containing the discoverable-at-interface-file-creation-time
    parts of tests/invalid_nodepend/duplicate_modes.m.

tests/invalid_make_int/Mercury.options:
tests/invalid_make_int/Mmakefile:
    Enable the new test cases.

tests/invalid_nodepend/bad_finalise_decl.{m,err_exp}:
tests/invalid_nodepend/bad_foreign_type.{m,err_exp}:
tests/invalid_nodepend/bad_initialise_decl.{m,err_exp}:
tests/invalid_nodepend/bad_mutable.{m,err_exp}:
tests/invalid_nodepend/duplicate_modes.{m,err_exp}:
    Delete the parts of these test cases that have been moved to
    tests/invalid_make_int.
2023-10-28 02:49:39 +11:00

42 lines
1.3 KiB
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module bad_mutable_int.
:- interface.
:- mutable(in_interface, int, 0, ground, [untrailed]).
:- type export_something == int.
:- implementation.
:- type list(T)
---> []
; [T | list(T)].
:- mutable(bad_attribute, int, 0, ground, [untrailed, bad_attrib]).
:- mutable(poly_type, list(T), [], ground, [untrailed]).
:- mutable(conflicting_trail, int, 0, ground, [untrailed, trailed]).
:- mutable(multiple_foreign, int, 0, ground,
[untrailed, foreign_name("C", "one"), foreign_name("C", "two")]).
:- mutable(conflicting_thr_local1, int, 0, ground, [thread_local, trailed]).
:- mutable(conflicting_thr_local2, int, 0, ground, [thread_local, constant]).
:- mutable(non_list_attr, int, 0, ground, thread_local).
:- mutable(conflict_trailed_constant, int, 0, ground, [trailed, constant]).
:- mutable(repeated_untrailed, int, 0, ground, [untrailed, untrailed]).
:- mutable(repeated_constant, int, 0, ground,
[constant,
constant, constant, % There should be one error for these two repeats ...
constant]). % ... and one error for this one repeat.
:- mutable(implicitly_untrailed, int, 0, ground, [thread_local]).