fpc/tests/tbf/tb0197.pp
Jonas Maebe f2b07704b5 * proper initialised/used warnings for variables used
in complex with-statements + tests

git-svn-id: trunk@6024 -
2007-01-17 12:04:53 +00:00

22 lines
249 B
ObjectPascal

{ %norun }
{ %fail }
{ %opt=-Sew }
type
tr = record
x, y: longint;
end;
ta = array[1..10] of tr;
var
a: ta;
i: longint;
begin
for i := low(a) to high(a) do
with a[i] do
begin
x:=i*2+y;
y:=i+5;
end;
end.