mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 09:28:13 +02:00
32 lines
439 B
ObjectPascal
32 lines
439 B
ObjectPascal
program i20241020_01;
|
|
{$mode objfpc}
|
|
|
|
//{$OPTIMIZATION NODFA}
|
|
//{$OPTIMIZATION NOFORLOOP}
|
|
|
|
type
|
|
TObj = object
|
|
arr: array [0..512] of byte;
|
|
constructor init;
|
|
destructor done; virtual;
|
|
end;
|
|
|
|
const
|
|
cnt=44;
|
|
|
|
var
|
|
arr: array[0..cnt] of TObj;
|
|
i: int32;
|
|
|
|
constructor TObj.init;
|
|
begin
|
|
end;
|
|
|
|
destructor TObj.done;
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
for i:=0 to cnt do arr[i].init;
|
|
for i:=0 to cnt do arr[i].done; // AV here in run-time
|
|
end. |