mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 04:13:46 +00:00
tests/warnings/foreign_singleton.err_exp2:
tests/warnings/singleton_test.err_exp2:
tests/warnings/singleton_test.err_exp3:
Update expected outputs for recent changes.
tests/warnings/table_with_inline.m:
Document the new .err_exp3 file.
tests/warnings/table_with_inline.err_exp3:
Add this expected output for non-C grades.
tests/warnings/table_with_inline.err_exp:
tests/warnings/table_with_inline.err_exp2:
Update line numbers.
23 lines
575 B
Mathematica
23 lines
575 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
% The .err_exp file is for non .par C grades.
|
|
% The .err_exp2 file is for .par C grades.
|
|
% The .err_exp3 file is for non-C grades.
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module table_with_inline.
|
|
|
|
:- interface.
|
|
|
|
:- import_module int.
|
|
|
|
:- func foo(int) = int.
|
|
|
|
:- implementation.
|
|
|
|
:- pragma memo(foo/1).
|
|
:- pragma inline(foo/1).
|
|
|
|
foo(A) = A + A.
|