Explorar o código

* don't allow initialzed threadvars

peter %!s(int64=23) %!d(string=hai) anos
pai
achega
36febe5d48
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      tests/tbf/tb0128.pp

+ 11 - 0
tests/tbf/tb0128.pp

@@ -0,0 +1,11 @@
+{ %version=1.1 }
+{ %fail }
+
+{$mode delphi}
+{$threading on}
+
+threadvar
+  { Initializing threadvars is not allowed }
+  p : longint = 1;
+begin
+end.