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

31 lines
572 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module multidet_prune1.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module require.
main(!IO) :-
( if
( X = 1
; X = 2
; fail
),
q(X)
then
io.write_int(1, !IO)
else
io.write_int(2, !IO)
).
:- pred q(int::in) is det.
:- pragma no_inline(q/1).
q(_).