fpc/tests/webtbf/tw13135.pp
florian f2a1d8edf6 * moved test to proper location
git-svn-id: trunk@13552 -
2009-08-18 06:53:50 +00:00

22 lines
221 B
ObjectPascal

{ %fail }
{$mode objfpc}
type
ta = class
end;
tb = class(ta)
end;
procedure test(var a: ta);
begin
a.free;
a:=ta.create;
// now b contains an instance of type "ta"
end;
var
b: tb;
begin
test(b);
end.