fpc/tests/webtbs/tw28632.pp
2015-09-12 23:31:57 +00:00

22 lines
253 B
ObjectPascal

{ %opt=-gh }
{$mode objfpc}{$H+}
procedure clear(out x);
begin
pointer(x):=nil;
end;
procedure test;
var
ii1: iunknown;
begin
ii1:=tinterfacedobject.create;
clear(ii1);
end;
begin
HaltOnNotReleased:=true;
test;
end.