Files
mercury/tests/mmc_make/bug489.m
Peter Wang 114a04c110 Add test case for Mantis bug #489.
tests/mmc_make/Mmakefile:
tests/mmc_make/bug489.exp:
tests/mmc_make/bug489.m:
tests/mmc_make/bug489.other.m:
tests/mmc_make/lexer.m:
    Add test where a separate sub-module is stored in a source file
    with a name that could be confused for a standard library module.
2020-01-14 16:40:11 +11:00

25 lines
620 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% Test that mmc --make can handle a module kept in a source file
% that could be confused for a standard library module
% (or other module that whose source file is not available).
:- module bug489.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- include_module lexer.
:- include_module other.
:- import_module bug489.lexer.
main(!IO) :-
io.write(tok1, !IO),
io.nl(!IO).