mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 01:58:26 +02:00
22 lines
247 B
ObjectPascal
22 lines
247 B
ObjectPascal
{ %OPT=-Ooautoinline -Oocse }
|
|
{$mode objfpc}
|
|
type
|
|
trec = record
|
|
b : byte;
|
|
end;
|
|
|
|
procedure p(var b : byte);
|
|
begin
|
|
b:=b*2;
|
|
end;
|
|
|
|
var
|
|
rec : trec;
|
|
begin
|
|
rec.b:=12;
|
|
p(rec.b);
|
|
if rec.b<>24 then
|
|
halt(1);
|
|
writeln('ok');
|
|
end.
|