Files
mercury/tests/invalid/mostly_uniq1.m
Zoltan Somogyi 3dc4babb24 Update the style of more test cases.
And update expected output files for changes in line numbers.
2021-07-27 13:29:46 +10:00

24 lines
565 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module mostly_uniq1.
:- interface.
:- import_module io.
:- pred my_main(io::di, io::uo) is multi.
:- implementation.
:- pred p(int::out) is multi.
p(1).
p(2).
% This should be a unique mode error, since the io-state is only mostly_unique,
% because p/1 has multiple solutions and we didn't declare main as cc_multi.
my_main(!IO) :-
p(X),
io.write_int(X, !IO).