fpc/tests/test/trangeob.pp
2006-03-04 20:17:29 +00:00

20 lines
166 B
ObjectPascal

{ %opt=-CR -S2 }
type
tc1 = class
end;
tc2 = class(tc1)
end;
procedure t(var c: tc2);
begin
end;
var
c: tc1;
begin
c := tc2.create;
t(tc2(c));
end.