mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 07:08:32 +02:00
20 lines
263 B
ObjectPascal
20 lines
263 B
ObjectPascal
{ %CPU=i386 }
|
|
{ %OPT=-Cp80386 }
|
|
program NaNTest;
|
|
{$mode objfpc}
|
|
{$SAFEFPUEXCEPTIONS on} // does not change anything
|
|
uses Math;
|
|
var
|
|
B: Boolean;
|
|
N1, N2: Extended;
|
|
S: string;
|
|
begin
|
|
N1 := NaN;
|
|
try
|
|
B := N1<4;
|
|
except
|
|
halt(0);
|
|
end;
|
|
halt(1);
|
|
end.
|