mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 18:59:41 +02:00
* Adding test to catch internal error 200411013
This commit is contained in:
parent
2b9455e262
commit
a90e4358c0
19
tests/webtbs/tw41175.pp
Normal file
19
tests/webtbs/tw41175.pp
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user