fpc/tests/tbs/tb0357.pp
2024-10-31 22:35:04 +01:00

14 lines
208 B
ObjectPascal

{$ifdef fpc}{$MODE OBJFPC}{$endif}
uses sysutils;
var
p:pointer;
begin
try
getmem(p, 1000000000);
except
on eoutofmemory do writeln('out of memory!');
end;
writeln('program lasts...')
end.