mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
18 lines
294 B
ObjectPascal
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.
|