summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw2897.pp
blob: 4c23ef43c0edaaf747167ca0e7dc4fee287c1f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ Source provided for Free Pascal Bug Report 2897 }
{ Submitted by "C Western" on  2004-01-17 }
{ e-mail: mftq75@dsl.pipex.com }
program stackerr;

{$S+}

procedure Show(v: Integer);
begin
  WriteLn(v);
  if v<>27 then
    begin
      writeln('Error!');
      halt(1);
    end;
end;

begin
  Show(27)
end.