Files
mercury/tests/valid/fail_ite.m
Simon Taylor f933775d66 Regression test for if-then-elses with conditions that cannot
Estimated hours taken: 0.1

tests/valid/fail_ite.m
	Regression test for if-then-elses with conditions that cannot
	succeed.
1997-04-28 00:07:57 +00:00

32 lines
372 B
Mathematica

:- module fail_ite.
:- interface.
:- import_module io.
:- pred p(io__state::di, io__state::uo) is erroneous.
:- implementation.
:- import_module require.
p -->
( { \+ fail_pred } ->
[]
;
[]
),
( { \+ det_pred } ->
[]
;
[]
),
( { error("blah") } ->
[]
;
[]
).
:- pred det_pred is det.
det_pred.
:- pred fail_pred is failure.
fail_pred :- fail.