mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 19:33:46 +00:00
Estimated hours taken: 1 Fixed a bug reported by David Overton which caused an abort in the second pass of simplification. compiler/dead_proc_elim.m Remove unused pseudo_imported unification preds (they can be inlined away). compiler/hlds_out.m Invert the test for printing pseudo_imported unification preds in hlds_dumps. tests/valid/Mmake tests/valid/compl_unify_bug.m Add a regression test.
16 lines
314 B
Mathematica
16 lines
314 B
Mathematica
% This is a regression test for a bug in dead procedure elimination
|
|
% of pseudo-imported preds.
|
|
:- module compl_unify_bug.
|
|
|
|
:- interface.
|
|
|
|
:- pred bug(int::in, list(T)::in) is semidet.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module list.
|
|
|
|
bug(NextInputArgNum, InputArgs) :-
|
|
list__drop(NextInputArgNum, InputArgs, [_|_]).
|
|
|