summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw0812.pp
blob: b96f08e57d3270e6f91fa052374417d2f4d0ca76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
uses
  erroru;

procedure Test;
var
  P: Pointer;
begin
  P:=nil;
  ReAllocMem(P, 8);
  ReAllocMem(P, 0);
end;

var Mem : sizeint;
begin
  domem(mem);
  Test;
  if domem(mem)<>0 then
    begin
      Writeln('ReAllocMem creates emory leaks');
      Writeln('Bug 812 is not yet fixed');
      Halt(1);
    end;
end.