Files
mercury/tests/debugger/label_layout.m
Mark Brown 700d19553a A regression test for the bug that was recently causing
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.
2003-02-04 05:04:21 +00:00

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).