浏览代码

+ test for last commit

florian 5 月之前
父节点
当前提交
7b67378206
共有 1 个文件被更改,包括 20 次插入0 次删除
  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.