summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0044.pp
blob: 3a512620b8e497b2ab61f71bb89eda09ea5b2cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ Old file: tbs0050.pp }
{  can't set a function result in a nested procedure of a function OK 0.99.7 (PM) }

function Append : Boolean;

      procedure DoAppend;
        begin
           Append := true;
        end;

begin
   Append:=False;
   DoAppend;
end;

begin
  If not Append then
    begin
       Writeln('TBS0050 fails');
       Halt(1);
    end;
end.