Files
mercury/tests/general/double_error2.m
Thomas Conway 350bd3b876 a trickier test taken from dmo's gfx project which the compiler
Estimated hours taken: 0.5

tests/general/double_error2.{exp,m}:
	a trickier test taken from dmo's gfx project which the compiler
	currently fails.
1997-01-02 00:47:55 +00:00

32 lines
406 B
Mathematica

:- module x.
:- interface.
:- import_module io.
:- pred main(io__state, io__state).
:- mode main(di, uo) is det.
:- implementation.
:- import_module std_util, require.
main -->
(
{ semidet_succeed }
->
io__write_string("yes\n")
;
io__progname("foo", Name),
{ error(Name) }
),
(
{ semidet_succeed }
->
io__write_string("yes\n")
;
io__progname("bar", Name),
{ error(Name) }
).