summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0416.pp
blob: d4e3350cf955aef3c1b2927f872a44129bcea7ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function f: string;

  procedure t;
    begin
      f := 'test';
    end;

begin
  t;
end;


begin
  if f <> 'test' then
    begin
      writeln('error!');
      halt(1);
    end;
end.