Explorar el Código

+ test for last commit

florian hace 7 meses
padre
commit
7b67378206
Se han modificado 1 ficheros con 20 adiciones y 0 borrados
  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.