Files
mercury/tests/general/double_error2.m
Fergus Henderson 19dab51e85 Put the correct module name in the `:- module' declaration,
Estimated hours taken: 0.25

tests/general/double_error2.m:
tests/hard_coded/eqv_type_bug.m:
	Put the correct module name in the `:- module' declaration,
	to avoid an error from `mmc --generate-dependencies'.
1998-06-16 03:11:36 +00:00

32 lines
418 B
Mathematica

:- module double_error2.
:- 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) }
).