瀏覽代碼

* fix refcount for 1.9.x

peter 21 年之前
父節點
當前提交
a94a628fcf
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      tests/webtbs/tw2911.pp

+ 5 - 3
tests/webtbs/tw2911.pp

@@ -1,3 +1,5 @@
+{ %version=1.1 }
+
 { Source provided for Free Pascal Bug Report 2911 }
 { Submitted by "Chris Hilder" on  2004-01-19 }
 { e-mail: [email protected] }
@@ -51,9 +53,6 @@ begin
         twostring := 'two';
         ARecordWithStrings.one := onestring + twostring;
         twostring := onestring + twostring;
-        RefCount(ARecordWithStrings.one,1);
-        ARecordWithStrings := FunctionResultIsRecord(ARecordWithStrings);
-        twostring := onestring + twostring;
         RefCount(ARecordWithStrings.one,2);
         ARecordWithStrings := FunctionResultIsRecord(ARecordWithStrings);
         twostring := onestring + twostring;
@@ -61,4 +60,7 @@ begin
         ARecordWithStrings := FunctionResultIsRecord(ARecordWithStrings);
         twostring := onestring + twostring;
         RefCount(ARecordWithStrings.one,4);
+        ARecordWithStrings := FunctionResultIsRecord(ARecordWithStrings);
+        twostring := onestring + twostring;
+        RefCount(ARecordWithStrings.one,5);
 end.