mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 21:33:49 +00:00
tests/hard_coded/Mercury.options: tests/hard_coded/Mmakefile: tests/hard_coded/trace_goal_opt.exp: tests/hard_coded/trace_goal_opt.m: tests/hard_coded/trace_goal_opt_2.m: Add test case.
23 lines
584 B
Mathematica
23 lines
584 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
% Check that trace goal conditions are written to .opt files.
|
|
|
|
:- module trace_goal_opt.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module trace_goal_opt_2.
|
|
|
|
main(!IO) :-
|
|
% We do not meet the conditions of the trace goal in this predicate
|
|
% so it should not execute.
|
|
require_lt(2, 1),
|
|
io.write_string("done.\n", !IO).
|