summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw11848.pp
blob: 8d3c30b29e88fd741e7c93bfedf18133948f8425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ %OPT=-Sew -Oodfa }
{ %NORUN }
{$mode objfpc}{$H+}

uses
  Classes, SysUtils;

function Test(a: integer): integer;
var
  HashItem: Pointer;
begin
  HashItem:=nil;
  while HashItem<>nil do begin
    if (HashItem<>nil) then
      exit(-1);
    HashItem:=HashItem;
  end;
  Result:=0;
end;

begin
end.