mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 21:10:14 +02:00
* outofmemory exception bug
This commit is contained in:
parent
f65e4ad5a3
commit
9ac5af24c1
12
tests/tbs/tb0357.pp
Normal file
12
tests/tbs/tb0357.pp
Normal file
@ -0,0 +1,12 @@
|
||||
{$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.
|
Loading…
Reference in New Issue
Block a user