mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 08:18:12 +02:00
20 lines
208 B
ObjectPascal
20 lines
208 B
ObjectPascal
uses
|
|
variants;
|
|
type
|
|
tr = packed record
|
|
b : byte;
|
|
v : tvardata;
|
|
end;
|
|
procedure p(var a : variant);
|
|
var
|
|
vd : tvardata;
|
|
begin
|
|
vd:=tvardata(a);
|
|
end;
|
|
|
|
var
|
|
r : tr;
|
|
begin
|
|
p(variant(r.v));
|
|
end.
|