瀏覽代碼

* Adding test to catch internal error 200411013

J. Gareth "Curious Kit" Moreton 6 月之前
父節點
當前提交
a90e4358c0
共有 1 個文件被更改,包括 19 次插入0 次删除
  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.