mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
tests/submodules/*.m:
Rename modules as mentioned above.
Indent nested submodules to make them stand out.
Group foreign_procs by what predicate they implement, not by
their implementation language.
tests/submodules/*.m:
tests/submodules/*.err_exp:
tests/submodules/Mmakefile:
tests/submodules/Mercury.options:
Update all references to the moved modules.
37 lines
962 B
Mathematica
37 lines
962 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% A tricky situation for the direct argument type representation optimisation.
|
|
%
|
|
|
|
:- module direct_arg_intermod.
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
%---------------------------------------------------------------------------%
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- implementation.
|
|
|
|
:- import_module direct_arg_intermod_helper_1.
|
|
|
|
%---------------------------------------------------------------------------%
|
|
|
|
main(!IO) :-
|
|
M1 = mk_maybe_inline(one, 1),
|
|
write_maybe_inline(M1, !IO),
|
|
write_maybe_no_inline(M1, !IO),
|
|
|
|
M2 = mk_maybe_no_inline(one, 2),
|
|
write_maybe_inline(M2, !IO),
|
|
write_maybe_no_inline(M2, !IO).
|
|
|
|
:- func one = int.
|
|
:- pragma no_inline(one/0).
|
|
|
|
one = 1.
|