浏览代码

improved tb0625. boolean casting should disregard the upper bits

git-svn-id: trunk@35107 -
Károly Balogh 8 年之前
父节点
当前提交
442cbed9ad
共有 1 个文件被更改,包括 4 次插入0 次删除
  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.