fpc/tests/webtbs/uw24801.pp
florian 0eee70ac81 * fix FindUnitSymtable for exception symtables, resolves #24801 and #39974
* more consistent naming of exceptsymtable enumeration symbol
2022-10-31 20:19:10 +01:00

23 lines
423 B
ObjectPascal

unit uw24801;
{$MODE objfpc}{$H+}
interface
uses
Classes,sysutils;
function f: string; inline; //causing internal error
implementation
function f: string;
var msg : string;
begin
//***** this is the block causing internal error
try
raise exception.create('asdfasdf');
except
on E: exception do begin
msg := E.Message;
result:=msg;
end;
end;
end;
end.