Files
mercury/tests/invalid/bad_module_name.err_exp
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

6 lines
312 B
Plaintext

bad_module_name.sub.m:008: Error: file `bad_module_name.sub.m' contains the
bad_module_name.sub.m:008: wrong module. Expected module
bad_module_name.sub.m:008: `bad_module_name.sub', found module
bad_module_name.sub.m:008: `wrong_module_name'.
bad_module_name.m:010: The expected name is specified here.