fpc/tests/webtbs/tw16874.pp
Jonas Maebe 229cbca086 * propagate pi_has_assembler_block and pi_uses_exceptions flags from inlined
routines to their host, as in this case the stack frame cannot be omitted
    (mantis )

git-svn-id: trunk@15535 -
2010-07-08 20:34:17 +00:00

31 lines
454 B
ObjectPascal

{ %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.