Browse Source

* threadvar in for loop

peter 23 years ago
parent
commit
270c85450b
1 changed files with 15 additions and 0 deletions
  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.