Files
mercury/tests/invalid/missing_init_pred.m
Ralph Becket 8f3545fd55 Ensure that initialisation special preds are type checked (without
Estimated hours taken: 3
Branches: main, release

compiler/special_pred.m:
	Ensure that initialisation special preds are type checked (without
	this, the compiler will abort during purity checking if the user
	defines a solver type, but not its initialisation predicate.)

tests/invalid/Mmakefile:
tests/invalid/missing_init_pred.m:
tests/invalid/missing_init_pred.err_exp:
	Added a test case.
2005-03-09 04:52:46 +00:00

28 lines
842 B
Mathematica

%-----------------------------------------------------------------------------%
% missing_init_pred.m
% Ralph Becket <rafe@cs.mu.oz.au>
% Wed Mar 9 12:24:52 EST 2005
% vim: ft=mercury ts=4 sw=4 et wm=0 tw=0
%
%-----------------------------------------------------------------------------%
:- module missing_init_pred.
:- interface.
:- solver type t.
%-----------------------------------------------------------------------------%
%-----------------------------------------------------------------------------%
:- implementation.
:- solver type t
where representation is int,
initialisation is init,
ground is ground,
any is ground.
%-----------------------------------------------------------------------------%
%-----------------------------------------------------------------------------%