Browse Source

* threadvar in for loop

peter 23 năm trước cách đây
mục cha
commit
270c85450b
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  1. 15 0
      tests/tbf/tb0129.pp

+ 15 - 0
tests/tbf/tb0129.pp

@@ -0,0 +1,15 @@
+{ %fail }
+{ %version=1.1 }
+
+{$ifdef fpc}
+  {$mode objfpc}
+  {$threading on}
+{$endif}  
+
+threadvar
+   thri : longint;
+   
+begin
+  { Delphi does not allow threadvars as for loop control variable }
+  for thri:=1 to 1000 do;
+end.