mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 04:13:46 +00:00
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.
36 lines
784 B
Mathematica
36 lines
784 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% Test error messages for the `:- initialise initpred' directive.
|
|
|
|
:- module bad_initialise_decl.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- initialise i2/2.
|
|
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- implementation.
|
|
|
|
:- initialise i1/2.
|
|
:- initialise i3/2.
|
|
:- initialise i4.
|
|
:- initialise i5/6.
|
|
|
|
main(!IO) :-
|
|
io.print("This is main/2.\n", !IO).
|
|
|
|
:- pred i1(T::di, T::uo) is det.
|
|
i1(X, X).
|
|
|
|
:- pred i2(io::in, io::out) is det.
|
|
i2(!IO).
|
|
|
|
%---------------------------------------------------------------------------%
|