mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-26 06:44:24 +00:00
Estimated hours taken: 0.5 tests/invalid: Add some more tests. Also add an `Mmake' file. Currently it just checks that each file fails to compile, i.e. that `mc --errorcheck-only' returns a non-zero exit status. It doesn't check the error messages.
14 lines
310 B
Mathematica
14 lines
310 B
Mathematica
:- module mostly_uniq2.
|
|
:- interface.
|
|
:- import_module io.
|
|
|
|
:- pred foo(io__state::di, io__state::uo) is multi.
|
|
|
|
:- implementation.
|
|
|
|
% This should be a unique mode error, since the I/O state
|
|
% is only mostly_unique, since we didn't declare foo as cc_multi.
|
|
|
|
foo --> io__write_int(1).
|
|
foo --> io__write_int(2).
|