summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw16874.pp
blob: 8cf629b1f6af522ea72d9ba41598776b6b00d564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ %opt=-Si }

program project1;

{$mode objfpc}{$H+}

var
  global: boolean;

  function TestInlineExcept : boolean; inline;
  begin
    try
      result := true;
    except
      result := false;
    end;
    global:=true;
  end;

begin
  writeln('before');
  if TestInlineExcept then begin
    writeln('TestInlineExcept: true');
  end else begin
    writeln('TestInlineExcept: false');
  end;
  writeln('after');
  if not global then
    halt(1);
end.