fpc/tests/tbs/tb0641.pp
2018-02-28 22:09:24 +00:00

24 lines
238 B
ObjectPascal

{$mode objfpc}
type
tc = class sealed
end;
var
c : tc;
function f : tc;
begin
result:=tc.create;
end;
begin
c:=tc.create;
if not(c is tc) then
halt(1);
if not(f is tc) then
halt(1);
writeln('ok');;
end.