mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 21:28:21 +02:00
17 lines
178 B
ObjectPascal
17 lines
178 B
ObjectPascal
uses
|
|
variants;
|
|
var
|
|
v : variant;
|
|
|
|
begin
|
|
v:=1.5;
|
|
v:=sqr(v);
|
|
if v<>1.5*1.5 then
|
|
halt(1);
|
|
v:=-v;
|
|
v:=abs(v);
|
|
if v<>1.5*1.5 then
|
|
halt(1);
|
|
writeln('ok');
|
|
end.
|