fpc/bugs/bug0288.pp
1999-09-07 07:50:07 +00:00

28 lines
345 B
ObjectPascal

{$mode objfpc}
uses sysutils;
type
zz=class(tobject)
procedure test;virtual;
procedure test1;virtual;
end;
procedure zz.test;
begin
writeln('ok');
end;
procedure zz.test1;
begin
try
raise exception.create('zz');
except
on e:exception do test;
end;
end;
var
z:zz;
begin
z:=zz.create;
z.test1;
z.destroy;
end.