Files
mercury/tests/submodules/nested_intermod_helper_1.m
Zoltan Somogyi eb6617c175 Rename X's aux modules as X_helper_N in submodules.
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.
2023-06-19 22:16:36 +02:00

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.