Browse Source

* Adding test to catch internal error 200411013

J. Gareth "Curious Kit" Moreton 5 months ago
parent
commit
a90e4358c0
1 changed files with 19 additions and 0 deletions
  1. 19 0
      tests/webtbs/tw41175.pp

+ 19 - 0
tests/webtbs/tw41175.pp

@@ -0,0 +1,19 @@
+{ %NORUN }
+{ Test for internal error on line 17 }
+
+program tw41175;
+{$pointermath on}
+
+type
+  PRec = ^TRec;
+  TRec = record
+    X: NativeInt;
+  end;
+
+var
+  R: TRec;
+
+begin
+  R:=PRec(nil)[0];
+  WriteLn('ok');
+end.