Files
mercury/tests/valid/fail_ite.m
Zoltan Somogyi c03b11ca48 Update the style of more test cases.
And updated expected outputs for changed line numbers.
2021-07-27 19:29:21 +10:00

39 lines
609 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module fail_ite.
:- interface.
:- import_module io.
:- pred p(io::di, io::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.