mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 02:48:07 +02:00
* fixed test for non-64 bit platforms
git-svn-id: trunk@43451 -
This commit is contained in:
parent
2f914ee2d8
commit
7bf50d261e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user