Files
mercury/tests/hard_coded/intermod_poly_mode.m
2020-10-05 17:53:05 +11:00

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).