Files
mercury/tests/hard_coded/reverse_arith.m
2020-10-03 17:47:12 +10:00

20 lines
464 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module reverse_arith.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module int.
main(!IO) :-
( if X = 5, X = 2 * 2 then
io.write_string("yes\n", !IO)
else
io.write_string("no\n", !IO)
).