mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 03:13:40 +00:00
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.
25 lines
620 B
Mathematica
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).
|