mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 01:06:13 +02:00
+ test for last commit
This commit is contained in:
parent
1e041077cc
commit
7b67378206
20
tests/tbs/tb0720.pp
Normal file
20
tests/tbs/tb0720.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{$apptype console}
|
||||||
|
{$mode objfpc}
|
||||||
|
type
|
||||||
|
Cls = class(TInterfacedObject)
|
||||||
|
destructor Destroy; override;
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
ClsInstance: IUnknown;
|
||||||
|
|
||||||
|
destructor Cls.Destroy;
|
||||||
|
begin
|
||||||
|
writeln(Assigned(ClsInstance));
|
||||||
|
if Assigned(ClsInstance) then
|
||||||
|
halt(1);
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
ClsInstance := Cls.Create;
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user