mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 01:43:35 +00:00
This fixes Mantis bug 437.
compiler/split_parse_tree_src.m:
Add empty submodules to the submodules map, since the abort
was caused absence of such an entry.
Warn about the duplication if a submodule is later defined
with the same name.
tests/valid/empty_submodule.m:
Add this regression test for the bug.
tests/valid/Mmakefile:
Enable the new test case.
21 lines
394 B
Mathematica
21 lines
394 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ft=mercury ts=4 sw=4 et
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module empty_submodule.
|
|
:- interface.
|
|
|
|
:- type t1
|
|
---> t1.
|
|
|
|
:- implementation.
|
|
|
|
:- module sub.
|
|
% :- interface.
|
|
%
|
|
% :- type t2
|
|
% ---> t2.
|
|
:- end_module sub.
|
|
|
|
:- end_module empty_submodule.
|