Files
mercury/tests/invalid/bad_module_name.sub.m
Peter Wang 2dbf279ff9 Only search for source file matching fully qualified module name.
Delete now-obsolete code to search for a module in files matching
partially qualified versions of the module name.

compiler/find_module.m:
    As above.

compiler/read_modules.m:
compiler/write_deps_file.m:
    Conform to changes.

tests/invalid/bad_module_name.err_exp
tests/invalid/bad_module_name.m
tests/invalid/bad_module_name_sub.m -> tests/invalid/bad_module_name.sub.m:
    Rename sub-module and its source file so that the source file will
    be found.
2020-01-13 17:25:55 +11:00

14 lines
346 B
Mathematica

% vim: ts=4 sw=4 et ft=mercury
%
% The fact that the module name in this source file does not match
% the module name expected from its file name caused mmc to crash
% with a map lookup failure when invoked with --generate-dependencies
% on bad_module_name.m.
:- module wrong_module_name.
:- interface.
:- type u
---> g1
; g2.