mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 04:43:53 +00:00
Estimated hours taken: 0.5
Branches: main
tests/hard_coded/sub-modules/include_parent.m:
tests/hard_coded/sub-modules/separate2.m:
tests/hard_coded/sub-modules/use_submodule.m:
tests/hard_coded/sub-modules/use_submodule.exp:
Update the test so that it also tests a separate sub-module whose
filename isn't fully qualified.
33 lines
726 B
Mathematica
33 lines
726 B
Mathematica
% Used by use_submodule.m
|
|
|
|
:- module include_parent.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
:- include_module separate, separate2.
|
|
|
|
:- pred hello(io__state::di, io__state::uo) is det.
|
|
|
|
:- module include_parent__nested.
|
|
:- interface.
|
|
:- pred hello(io__state::di, io__state::uo) is det.
|
|
:- end_module include_parent__nested.
|
|
|
|
:- implementation.
|
|
|
|
hello -->
|
|
io__write_string("include_parent: hello\n").
|
|
|
|
%-----------------------------------------------------------------------------%
|
|
|
|
:- module include_parent__nested.
|
|
:- implementation.
|
|
|
|
hello -->
|
|
io__write_string("include_parent__nested: hello\n").
|
|
|
|
:- end_module include_parent__nested.
|
|
|
|
%-----------------------------------------------------------------------------%
|