mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 01:09:27 +02:00

C compiler/nmat.pas --- Recording mergeinfo for merge of r43347 into '.': G . --- Merging r43436 into '.': U compiler/defutil.pas U compiler/nadd.pas U compiler/ncnv.pas U compiler/ncon.pas U compiler/ngtcon.pas U compiler/ninl.pas G compiler/nmat.pas U compiler/nutils.pas U compiler/pstatmnt.pas --- Recording mergeinfo for merge of r43436 into '.': G . --- Merging r43438 into '.': A tests/test/tinlrange1.pp A tests/test/tinlrange2.pp A tests/test/tinlrange3.pp --- Recording mergeinfo for merge of r43438 into '.': G . --- Merging r43451 into '.': U tests/test/tinlrange1.pp --- Recording mergeinfo for merge of r43451 into '.': G . --- Merging r43497 into '.': C compiler/nmat.pas A tests/test/tinlrange4.pp --- Recording mergeinfo for merge of r43497 into '.': G . git-svn-id: branches/fixes_3_2@43498 -
25 lines
310 B
ObjectPascal
25 lines
310 B
ObjectPascal
{ %fail }
|
|
|
|
{$mode objfpc}
|
|
|
|
{$ifdef cpu64}
|
|
{$r+}
|
|
{$else}
|
|
{$q+}
|
|
{$endif}
|
|
|
|
function test(l1, l2: longint): longint; inline;
|
|
begin
|
|
result:=l1+l2;
|
|
end;
|
|
|
|
{ range checking state at caller site should not influence inline evaluation }
|
|
{$ifdef cpu64}
|
|
{$r-}
|
|
{$else}
|
|
{$q-}
|
|
{$endif}
|
|
begin
|
|
test(high(longint), 1);
|
|
end.
|