fpc/tests/webtbs/tw17430.pp
Jonas Maebe 242016312f * immediately fail when trying to allocate a memory block whose size falls
in the range high(ptruint)-$fffe .. high(ptruint), because all large
    allocations are rounded up to the next multiple of 64kb, which is 0 in
    that case (mantis #17430)

git-svn-id: trunk@16001 -
2010-09-17 14:05:06 +00:00

13 lines
164 B
ObjectPascal

program Project1;
{$mode delphi}{$H+}
var
p:pointer;
begin
returnnilifgrowheapfails:=true;
GetMem(p,ptruint(-128));
if assigned(p) then
halt(1);
end.