Files
mercury/tests/submodules/use_submodule.m
Zoltan Somogyi c27258ae9c Update the style of tests/submodules/*.m.
Disable irrelevant warnings for a test case.
2021-07-25 14:30:37 +10:00

36 lines
990 B
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 include_parent.
:- import_module include_parent.nested.
:- import_module include_parent.separate.
:- import_module include_parent.separate.nested.
:- use_module include_parent.separate2.
:- use_module include_parent.separate2.nested.
main(!IO) :-
include_parent.hello(!IO),
include_parent.nested.hello(!IO),
nested.hello(!IO),
include_parent.separate.hello(!IO),
separate.hello(!IO),
include_parent.separate.hello2(!IO),
separate.hello2(!IO),
hello2(!IO),
hello3(!IO),
include_parent.separate2.hello(!IO),
include_parent.separate2.nested.hello(!IO).