Files
mercury/tests/hard_coded/sub-modules/include_parent.m
Peter Ross c14c007434 Update the test so that it also tests a separate sub-module whose
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.
2001-11-16 14:06:12 +00:00

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.
%-----------------------------------------------------------------------------%