Explorar o código

* check for array size

peter %!s(int64=21) %!d(string=hai) anos
pai
achega
f5f187f3a9
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      tests/test/tarray5.pp

+ 10 - 0
tests/test/tarray5.pp

@@ -0,0 +1,10 @@
+{ %fail }
+
+var
+  { This shouldn't be allowed, the number of elements
+    doesn't fit in a aint }
+  mem  : array[0..high(aint)] of byte ;
+
+begin
+end;
+