Browse Source

* rangecheck error when operands are widened

peter 22 years ago
parent
commit
edb37d1a72
1 changed files with 13 additions and 0 deletions
  1. 13 0
      tests/tbs/tb0447.pp

+ 13 - 0
tests/tbs/tb0447.pp

@@ -0,0 +1,13 @@
+{$R+}
+var
+  a : cardinal;
+  b : longint;
+begin
+  a := 0;
+  b := -1;
+  if a > b then
+    writeln ('OK')
+  else
+    halt(1);
+end.
+