mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-28 07:44:43 +00:00
Estimated hours taken: 0.2 Branches: main tests/hard_coded/Mercury.options: tests/hard_coded/Mmakefile: tests/hard_coded/intermod_poly_mode.m: tests/hard_coded/intermod_poly_mode_2.m: tests/hard_coded/intermod_poly_mode.exp: Add a test case that exposes a bug with intermodule optimization.
23 lines
435 B
Mathematica
23 lines
435 B
Mathematica
%
|
|
% This test case exposes a bug with intermodule optimization
|
|
% in rotd-2005-11-02 and before. (This is a cut-down version
|
|
% of the original test case provided by Peter Hawkins.)
|
|
%
|
|
:- module intermod_poly_mode.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module int.
|
|
:- import_module intermod_poly_mode_2.
|
|
|
|
main(!IO) :-
|
|
New = new(561),
|
|
io.write(New, !IO),
|
|
io.nl(!IO).
|