mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 00:49:31 +02:00
21 lines
280 B
ObjectPascal
21 lines
280 B
ObjectPascal
uses
|
|
variants;
|
|
var
|
|
tmp: OleVariant;
|
|
a: OleVariant;
|
|
b: OleVariant;
|
|
begin
|
|
tmp:=VarArrayCreate([0,2], varVariant);
|
|
a:=1234;
|
|
b:=4321;
|
|
tmp[0]:=a;
|
|
tmp[1]:=b;
|
|
a:=tmp[0];
|
|
b:=tmp[1];
|
|
if a<>1234 then
|
|
halt(1);
|
|
if b<>4321 then
|
|
halt(1);
|
|
writeln('ok');
|
|
end.
|