Files
mercury/tests/valid/loop_in_disj.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

33 lines
479 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module loop_in_disj.
:- interface.
:- pred p(int::out) is det.
:- pred q(int::out) is det.
:- implementation.
:- pred loop is erroneous.
loop :-
loop.
p(X) :-
(
loop
;
X = 42
).
q(X) :-
(
loop,
X = 41
;
X = 42
).