mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 01:08:07 +02:00
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.
|