Files
mercury/tests/invalid/mostly_uniq2.m
Fergus Henderson 81f7dfb4c1 Add some more tests.
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.
1996-05-14 14:31:17 +00:00

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