mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 21:07:58 +02:00
29 lines
413 B
ObjectPascal
29 lines
413 B
ObjectPascal
{ Source provided for Free Pascal Bug Report 3829 }
|
|
{ Submitted by "Thomas Schatzl" on 2005-03-25 }
|
|
{ e-mail: }
|
|
{$mode delphi}
|
|
|
|
uses
|
|
sysutils;
|
|
|
|
type
|
|
IAny = interface ['{A40AEE53-8C88-4DD2-9F14-05A8C1A64849}']
|
|
end;
|
|
|
|
TAny = class(TInterfacedObject, IAny)
|
|
end;
|
|
|
|
var
|
|
a : TAny;
|
|
|
|
begin
|
|
a:=TAny.Create;
|
|
|
|
(a as IAny)._Addref();
|
|
|
|
if (supports(a, IAny)) then
|
|
writeln('ok')
|
|
else
|
|
halt(1);
|
|
end.
|