mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 21:59:47 +02:00
18 lines
299 B
ObjectPascal
18 lines
299 B
ObjectPascal
{ Old file: tbf0164.pp }
|
|
{ crash when using undeclared array index in with statement OK 0.99.8 (PFV) }
|
|
|
|
type t1r = record
|
|
a, b: Byte;
|
|
end;
|
|
t2r = record
|
|
l1, l2: Array[1..4] Of t1r;
|
|
end;
|
|
|
|
|
|
Var r: t2r;
|
|
|
|
begin
|
|
with r.l1[counter] Do
|
|
Inc(a)
|
|
end.
|