mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +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.
44 lines
699 B
Mathematica
44 lines
699 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module nested_intermod_helper_1.
|
|
|
|
:- interface.
|
|
|
|
:- import_module int.
|
|
|
|
:- pred foo(int).
|
|
:- mode foo(in) is semidet.
|
|
|
|
:- module sub.
|
|
|
|
:- interface.
|
|
|
|
:- pred fu(int).
|
|
:- mode fu(in) is semidet.
|
|
:- end_module sub.
|
|
|
|
:- implementation.
|
|
|
|
:- module sub.
|
|
:- implementation.
|
|
|
|
fu(X) :-
|
|
X < 4.
|
|
|
|
:- end_module sub.
|
|
|
|
:- pragma inline(foo/1).
|
|
|
|
foo(X) :-
|
|
bar(X).
|
|
|
|
:- pred bar(int).
|
|
:- mode bar(in) is semidet.
|
|
|
|
bar(X) :-
|
|
X > 3.
|
|
|
|
:- end_module nested_intermod_helper_1.
|