mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:39:26 +02:00
bug #855
This commit is contained in:
parent
145a9c682f
commit
bd7be9cf3e
16
tests/webtbs/tbug855.pp
Normal file
16
tests/webtbs/tbug855.pp
Normal file
@ -0,0 +1,16 @@
|
||||
{$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.
|
Loading…
Reference in New Issue
Block a user