Browse Source

* change to avoid range check error

pierre 25 years ago
parent
commit
bc1d0c90f8
1 changed files with 7 additions and 2 deletions
  1. 7 2
      tests/tbs/tbs0120.pp

+ 7 - 2
tests/tbs/tbs0120.pp

@@ -1,9 +1,14 @@
 type
 type
-   te = (enum);
+   te = (enum1,enum2,enum3);
 
 
 var
 var
-   e : te;
+   e,f : te;
 
 
 begin
 begin
+   e:=enum1;
    inc(e);
    inc(e);
+   f:=enum3;
+   dec(f);
+   if e<>f then
+    halt(1);
 end.
 end.