mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 03:43:51 +00:00
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.
32 lines
406 B
Mathematica
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) }
|
|
).
|
|
|