pierre 25 years ago
parent
commit
bd7be9cf3e
1 changed files with 16 additions and 0 deletions
  1. 16 0
      tests/webtbs/tbug855.pp

+ 16 - 0
tests/webtbs/tbug855.pp

@@ -0,0 +1,16 @@
+{$MODE objfpc}
+{$R+}
+type
+  TMyRec = record
+    x: Integer;
+  end;
+  TMyArray = array[LongWord] of TMyRec;
+  PMyArray = ^TMyArray;
+var
+  a: PMyArray;
+  i: Integer;
+begin
+  GetMem(a, SizeOf(TMyRec));
+  i := 0;
+  a^[i].x := 1;
+end.