summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw8678a.pp
blob: b982b1cce50291635a59df5bedf5d3e884728850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ %cpu=powerpc,powerpc64,sparc,arm,x86_64 }
{ %opt=-CF64 }

var
  l: longint;
  s: single;
  d: double;

begin
{$if not defined(cpux86_64) or defined(win64)} // or: using sse unit for math
  l := maxlongint;
  s:= l / 1.0;
  d:= l / 1.0;
  if (s = d) then
    halt(1);
{$endif}
end.