Ver código fonte

+ test for last commit

florian 7 meses atrás
pai
commit
7b67378206
1 arquivos alterados com 20 adições e 0 exclusões
  1. 20 0
      tests/tbs/tb0720.pp

+ 20 - 0
tests/tbs/tb0720.pp

@@ -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.