Files
mercury/tests/analysis_external/ext2.m
Julien Fischer f32063fc75 Replace `:- external' declarations in tests we don't currently pass.
tests/analysis_external/ext.m:
tests/analysis_external/ext2.m:
tests/dppd/bug.m:
tests/valid/determinism.m:
tests/valid/mode_merge_insts.m:
      Replace `:- external' declarations with the new pragma form.
2016-04-29 14:44:20 +10:00

26 lines
577 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% Same as ext.m but tests trail usage analysis separately.
:- module ext2.
:- interface.
:- pred foo(t::in, t::out) is det.
:- pred bar(t::in, t::out) is det.
:- type t
---> t(int, int).
%---------------------------------------------------------------------------%
:- implementation.
:- pragma external_pred(foo/2).
% For comparison.
:- pragma no_inline(bar/2).
bar(X, X).