Files
mercury/tests/valid/intermod_quote.m
David Overton 2ec641b797 Fix a bug with quoting of module-qualified terms in .opt files.
Estimated hours taken: 0.5

Fix a bug with quoting of module-qualified terms in .opt files.
Add a test case for this bug.

compiler/hlds_out.m:
	Add a version of `hlds_out__write_functor' which has a
	`needs_quotes' argument.  Call this new predicate from
	`hlds_out__write_qualified_functor' to ensure that functors
	are properly quoted after the `:'.

compiler/mercury_to_mercury.m:
	Export `mercury_output_term/6' so it can be called by
	`hlds_out__write_functor/7'.

tests/valid/Mmakefile:
	Add the new test case.

tests/valid/intermod_quote.m:
tests/valid/intermod_quote2.m:
	New test case for this bug.
1998-10-28 01:52:03 +00:00

12 lines
234 B
Mathematica

% Regression test to ensure that terms are properly quoted in the intermodule
% .opt file.
:- module intermod_quote.
:- interface.
:- type foo. % Not used.
:- implementation.
:- import_module intermod_quote2.
:- type foo ---> foo.