Explorar o código

improved tb0625. boolean casting should disregard the upper bits

git-svn-id: trunk@35107 -
Károly Balogh %!s(int64=8) %!d(string=hai) anos
pai
achega
442cbed9ad
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/tbs/tb0625.pp

+ 4 - 0
tests/tbs/tb0625.pp

@@ -20,4 +20,8 @@ begin
   b := Boolean(i);
   if not b then
     Halt(4);
+  i := $ffffffffffffff00;
+  b := Boolean(i);
+  if b then
+    Halt(5);
 end.