mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-29 08:14:31 +00:00
Estimated hours taken: 0.5 Branches: main tests/debugger/Mmakefile: tests/debugger/label_layout.exp: tests/debugger/label_layout.inp: tests/debugger/label_layout.m: A regression test for the bug that was recently causing output_term_dep to fail. This is a much smaller and simpler test case than the existing one. tests/debugger/Mercury.options: Pass --opt-space to mmc for this test, since the problem only showed up with that option.
26 lines
305 B
Mathematica
26 lines
305 B
Mathematica
:- module label_layout.
|
|
:- interface.
|
|
:- import_module io.
|
|
:- pred main(io__state::di, io__state::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
main -->
|
|
(
|
|
{
|
|
a(1, X)
|
|
;
|
|
a(2, X)
|
|
},
|
|
{ X = 0 }
|
|
->
|
|
io__write_string("yes\n")
|
|
;
|
|
io__write_string("no\n")
|
|
).
|
|
|
|
:- pred a(int::in, int::out) is det.
|
|
|
|
a(X, X).
|
|
|