mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 23:49:22 +02:00
* fixed test for comp=int64;
This commit is contained in:
parent
b54ea2800a
commit
169a2e92c3
@ -32,14 +32,19 @@ var
|
|||||||
begin
|
begin
|
||||||
dbl1 := -1e-128;
|
dbl1 := -1e-128;
|
||||||
comp1 := comp(dbl1);
|
comp1 := comp(dbl1);
|
||||||
|
{$ifdef cpuarm}
|
||||||
|
comp1:=swap(comp1);
|
||||||
|
{$endif cpuarm}
|
||||||
str(comp1,s);
|
str(comp1,s);
|
||||||
{$if defined(cpui386) or defined(cpux86_64)}
|
{$if defined(cpui386) or defined(cpux86_64)}
|
||||||
if s<>'-6.53142228756617E+0018' then
|
if s<>'-6.53142228756617E+0018' then
|
||||||
{$else cpui386}
|
{$else cpui386}
|
||||||
if s<>'-6531422287566170215' then
|
{ this constant has been verified and is correct (FK) }
|
||||||
|
if s<>'-6531422287566170211' then
|
||||||
{$endif cpui386}
|
{$endif cpui386}
|
||||||
begin
|
begin
|
||||||
|
writeln(s);
|
||||||
writeln('error');
|
writeln('error');
|
||||||
halt(1);
|
halt(1);
|
||||||
end;
|
end;
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user