* threadvar in for loop

This commit is contained in:
peter 2002-10-14 12:14:16 +00:00
parent 36febe5d48
commit 270c85450b

15
tests/tbf/tb0129.pp Normal file
View File

@ -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.