ソースを参照

* Adding test to catch internal error 200411013

J. Gareth "Curious Kit" Moreton 5 ヶ月 前
コミット
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.