fpc/tests/tbf/tb0049.pp
2002-09-07 15:40:30 +00:00

18 lines
294 B
ObjectPascal

{ %FAIL }
{ Old file: tbf0246.pp }
{ const para can be changed without error OK 0.99.13 (PFV) }
type
tref=record
ofs : longint;
end;
procedure p(const ref:tref);
begin
with ref do
ofs:=ofs+1; { This should issue an error, because ref is const ! }
end;
begin
end.