fpc/tests/webtbf/tw9072a.pp
Jonas Maebe 12b4f034ea * only allow using array elements as for-loop counter variables
in TP mode

git-svn-id: trunk@8907 -
2007-10-21 22:39:49 +00:00

12 lines
112 B
ObjectPascal

{ %fail }
{$mode tp}
var
a: array[1..10] of byte;
b: byte;
begin
b:=1;
for a[b] := 1 to 10 do ;
end.