Files
mercury/tests/hard_coded/intermod_multimode_main.exp
Fergus Henderson 2bd50c8c37 Fix a bug in my earlier change to add support for writing
Estimated hours taken: 3
Branches: main

Fix a bug in my earlier change to add support for writing
different clauses for different modes -- it didn't handle
intermodule optimization, because the `.opt' files weren't
being output correctly.

compiler/hlds_out.m:
	Change hlds_out__write_clause so that it outputs the
	mode annotations, if needed.

tests/hard_coded/Mmakefile:
tests/hard_coded/intermod_multimode.m:
tests/hard_coded/intermod_multimode_main.m:
tests/hard_coded/intermod_multimode_main.exp:
	Add a multi-module test case for using different clauses
	for different modes.
2001-05-27 09:58:37 +00:00

15 lines
216 B
Plaintext

func0 = out
func1(in) = out
func1(out) = out
func2(in, in) = out
func2(in, out) = out
func2(out, in) = out
func2(out, out) = out
test0
test1(in)
test1(out)
test2(in, in)
test2(in, out)
test2(out, in)
test2(out, out)