fpc/tests/webtbs/tw38022.pp
florian 0bf1af08c4 + test for #38022
git-svn-id: trunk@47304 -
2020-11-03 21:44:57 +00:00

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.