Files
mercury/tests/submodules/use_submodule.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

37 lines
1.2 KiB
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% Test that we can use both nested and separate sub-modules.
%
:- module use_submodule.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module use_submodule_helper_1.
:- import_module use_submodule_helper_1.nested.
:- import_module use_submodule_helper_1.use_submodule_helper_2.
:- import_module use_submodule_helper_1.use_submodule_helper_2.nested.
:- use_module use_submodule_helper_1.use_submodule_helper_3.
:- use_module use_submodule_helper_1.use_submodule_helper_3.nested.
main(!IO) :-
use_submodule_helper_1.hello(!IO),
use_submodule_helper_1.nested.hello(!IO),
nested.hello(!IO),
use_submodule_helper_1.use_submodule_helper_2.hello(!IO),
use_submodule_helper_2.hello(!IO),
use_submodule_helper_1.use_submodule_helper_2.hello2(!IO),
use_submodule_helper_2.hello2(!IO),
hello2(!IO),
hello3(!IO),
use_submodule_helper_1.use_submodule_helper_3.hello(!IO),
use_submodule_helper_1.use_submodule_helper_3.nested.hello(!IO).