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

22 lines
514 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% rotd-02-17 emitted a warning about the call to false never succeeding if
% compiling with --intermodule-optimization and --no-fully-strict.
:- module builtin_false.
:- interface.
:- pred foo(int::in, int::out) is semidet.
:- implementation.
foo(X, Y) :-
( if X = 3 then
Y = 4
else
false
).