mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-20 16:31:04 +00:00
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.
8 lines
175 B
Mathematica
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).
|