Files
mercury/tests/hard_coded/sub-modules/separate2.m
Peter Ross 976da6e014 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:49:18 +00:00

26 lines
620 B
Mathematica

% Used by use_submodule.m
:- module include_parent__separate2.
:- interface.
% The parent module includes io.
:- pred hello(io__state::di, io__state::uo) is det.
:- module include_parent__separate2__nested.
:- interface.
:- pred hello(io__state::di, io__state::uo) is det.
:- end_module include_parent__separate2__nested.
:- implementation.
hello -->
io__write_string("include_parent__separate2: hello\n").
:- module include_parent__separate2__nested.
:- implementation.
hello -->
io__write_string("include_parent__separate2__nested: hello\n").
:- end_module include_parent__separate2__nested.