fpc/tests/test/tinlrange1.pp
Jonas Maebe 7bf50d261e * fixed test for non-64 bit platforms
git-svn-id: trunk@43451 -
2019-11-11 09:26:55 +00:00

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.