mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:26:24 +02:00
improved tb0625. boolean casting should disregard the upper bits
git-svn-id: trunk@35107 -
This commit is contained in:
parent
288a39d86e
commit
442cbed9ad
@ -20,4 +20,8 @@ begin
|
|||||||
b := Boolean(i);
|
b := Boolean(i);
|
||||||
if not b then
|
if not b then
|
||||||
Halt(4);
|
Halt(4);
|
||||||
|
i := $ffffffffffffff00;
|
||||||
|
b := Boolean(i);
|
||||||
|
if b then
|
||||||
|
Halt(5);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user