mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 04:43:53 +00:00
tests/valid/*: Renamed `*.nl' as `*.m'. Added a few new test cases. Removed a couple of duplicate test cases. Fixed up the Mmake file so that `mmake check' now works.
12 lines
227 B
Mathematica
12 lines
227 B
Mathematica
:- module det_condition.
|
|
|
|
% Check that we get determinism analysis and code generation
|
|
% right for code which has an if-then-else with a
|
|
% deterministic condition.
|
|
|
|
:- pred p is det.
|
|
|
|
p :-
|
|
if true then true else not true.
|
|
|