Browse Source

+ bug #1996 verification code

carl 23 years ago
parent
commit
df15467477
1 changed files with 21 additions and 0 deletions
  1. 21 0
      tests/webtbs/tw1996.pp

+ 21 - 0
tests/webtbs/tw1996.pp

@@ -0,0 +1,21 @@
+{ Source provided for Free Pascal Bug Report 1996 }
+{ Submitted by "Louis Jean-Richard" on  2002-06-03 }
+{ e-mail: [email protected] }
+PROGRAM RangeDefinition;
+TYPE
+        codeIndex       = 5 .. 287;
+CONST
+        noCodeIndex     = HIGH(codeIndex) + 1;
+        valuereal      =  14.5 + 13.4;
+CONST
+        noCodeIndexBis  = SUCC(HIGH(codeIndex));
+TYPE
+        codePointer     = 0 + LOW(codeIndex) .. noCodeIndex;
+TYPE
+        codePointerBis  = LOW(codeIndex) .. noCodeIndex;
+var
+ Code : CodeIndex;
+BEGIN
+        code     := 1 + LOW(codeIndex);
+END
+.