mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 08:28:08 +02:00

routines to their host, as in this case the stack frame cannot be omitted (mantis #16874) git-svn-id: trunk@15535 -
31 lines
454 B
ObjectPascal
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.
|