mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 01:43:35 +00:00
27 lines
631 B
Mathematica
27 lines
631 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% 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).
|