fpc/tests/webtbf/tw0855.pp
2002-09-07 15:40:30 +00:00

18 lines
240 B
ObjectPascal

{ %FAIL }
{$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.