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

{$mode objfpc}{$H+}

Uses SysUtils;

function count: integer;
begin
  result := 5;
end;

var
  i: Integer;

begin
  for i := 0 to count-1 do begin
    writeln(i);
    if FileExists('asdkjasdjalsj') then;

    if i>5 then halt(1);
  end;
end.