Files
mercury/tests/hard_coded/intermod_unused_args2.m
Peter Wang 7ce42d3355 Fix a bug when unused argument elimination was enabled with
Estimated hours taken: 3
Branches: main

compiler/unused_args.m:
	Fix a bug when unused argument elimination was enabled with
	intermodule analysis that caused an exception in the MLDS code
	generator.  The proc_infos for created imported procedures did
	not have the modes of unused arguments removed.

tests/hard_coded/Mercury.options:
tests/hard_coded/Mmakefile:
tests/hard_coded/intermod_unused_args.exp:
tests/hard_coded/intermod_unused_args.m:
tests/hard_coded/intermod_unused_args2.m:
	Add a test case.
2006-01-04 07:14:35 +00:00

8 lines
175 B
Mathematica

:- module intermod_unused_args2.
:- interface.
:- pred callee(int::in, int::in, int::in, int::out) is det.
:- implementation.
:- pragma no_inline(callee/4).
callee(_,_,_,4).