* fixed test for non-64 bit platforms

git-svn-id: trunk@43451 -
This commit is contained in:
Jonas Maebe 2019-11-11 09:26:55 +00:00
parent 2f914ee2d8
commit 7bf50d261e

View File

@ -1,7 +1,12 @@
{ %fail }
{$mode objfpc}
{$ifdef cpu64}
{$r+}
{$else}
{$q+}
{$endif}
function test(l1, l2: longint): longint; inline;
begin
@ -9,7 +14,11 @@ begin
end;
{ range checking state at caller site should not influence inline evaluation }
{$ifdef cpu64}
{$r-}
{$else}
{$q-}
{$endif}
begin
test(high(longint), 1);
end.