mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 15:00:29 +02:00
* don't allow initialzed threadvars
This commit is contained in:
parent
3a3b8a3dc4
commit
36febe5d48
11
tests/tbf/tb0128.pp
Normal file
11
tests/tbf/tb0128.pp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ %version=1.1 }
|
||||||
|
{ %fail }
|
||||||
|
|
||||||
|
{$mode delphi}
|
||||||
|
{$threading on}
|
||||||
|
|
||||||
|
threadvar
|
||||||
|
{ Initializing threadvars is not allowed }
|
||||||
|
p : longint = 1;
|
||||||
|
begin
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user