浏览代码

* new bug

peter 21 年之前
父节点
当前提交
735a5ca27c
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      tests/tbf/tb0169.pp

+ 11 - 0
tests/tbf/tb0169.pp

@@ -0,0 +1,11 @@
+{ %fail }
+
+var
+   l : longint;
+   s : single;
+
+begin
+   { THis should fail with an invalid type cast }
+   l:=longint(single(s+1))+12;
+end.
+