Bläddra i källkod

improved tb0625. boolean casting should disregard the upper bits

git-svn-id: trunk@35107 -
Károly Balogh 8 år sedan
förälder
incheckning
442cbed9ad
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      tests/tbs/tb0625.pp

+ 4 - 0
tests/tbs/tb0625.pp

@@ -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.