Files
mercury/tests/invalid_submodules/undef_mod_qual.m
Zoltan Somogyi df344578d3 Rename X's aux modules as X_helper_N in invalid_submodules.
tests/invalid_submodules/*.m:
    Rename modules as mentioned above.

    Indent nested submodules to make them stand out.

tests/invalid_submodules/*.m:
tests/invalid_submodules/*.err_exp:
    Update all references to the moved modules.

tests/invalid_submodules/Mercury.options:
    Delete reference to a test that is another directory.
2023-06-19 18:31:32 +02:00

32 lines
696 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module undef_mod_qual.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- use_module undef_mod_qual.foo.
main(!IO) :-
foo.bletchx(!IO).
%-------------------------------------------------------------------------
% foo is a submodule
:- module foo.
:- interface.
:- pred bletch(io::di, io::uo) is det.
:- implementation.
bletch(!IO) :-
io.write_string("Hi There", !IO).
:- end_module foo.
:- end_module undef_mod_qual.