Files
mercury/tests/debugger/multi_parameter.m
Zoltan Somogyi 7df5045e93 Update expected outputs after my recent change ...
... and record the bootcheck grade of those expected output files.
2018-08-29 02:58:25 +10:00

42 lines
850 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% The .exp file is for asm_fast.gc bootchecks.
% The .exp2 file is for asm_fast.gc.debug bootchecks.
%
%---------------------------------------------------------------------------%
:- module multi_parameter.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module char.
:- typeclass m(A, B) where [
pred a(A, B),
mode a(in, out) is det
].
:- instance m(char, int) where [
pred(a/2) is char.to_int
].
main(!IO) :-
foo('z', X) ,
io.write_int(X, !IO),
io.nl(!IO).
:- pred foo(A, B) <= m(A, B).
:- mode foo(in, out) is det.
:- pragma no_inline(foo/2).
foo(X, Y) :-
a(X, Y).