Ver Fonte

* don't allow initialzed threadvars

peter há 23 anos atrás
pai
commit
36febe5d48
1 ficheiros alterados com 11 adições e 0 exclusões
  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.