Files
mercury/tests/tabling/reset_stats_intermod.exp
Peter Wang 9750cc280d The bodies of table reset and statistics procedures generated by the
Branches: main

The bodies of table reset and statistics procedures generated by the
compiler were being written to `.opt' files.  However, those procedures
need access to C variables which are local to their defining modules.

compiler/add_pragma.m:
	Set the `may_not_duplicate' attribute on table reset and
	statistics procedures.

compiler/intermod.m:
	Don't write foreign procedures to `.opt' files if they have the
	`may_not_duplicate' attribute.

tests/tabling/Mercury.options:
tests/tabling/Mmakefile:
tests/tabling/reset_stats_intermod.exp:
tests/tabling/reset_stats_intermod.m:
tests/tabling/reset_stats_intermod_2.m:
	Add test case.
2008-08-08 04:47:36 +00:00

2 lines
3 B
Plaintext