Files
mercury/tests/analysis_external/ext.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

28 lines
702 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% Analysis results should be written out for exported `:- pragma external*'
% predicates. Importing modules don't care how those procedures are
% implemented, so results should exist.
:- module ext.
:- 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).