Browse Source

* new bug

peter 20 years ago
parent
commit
735a5ca27c
1 changed files with 11 additions and 0 deletions
  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.
+