mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 04:52:17 +02:00
* threadvar in for loop
This commit is contained in:
parent
36febe5d48
commit
270c85450b
15
tests/tbf/tb0129.pp
Normal file
15
tests/tbf/tb0129.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user