mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 23:49:07 +02:00
+ Initial implementation. Bug fixed by Peter
This commit is contained in:
parent
04a69ced17
commit
cfac7bb0b7
33
tests/webtbs/tw3207.pp
Normal file
33
tests/webtbs/tw3207.pp
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 3207 }
|
||||||
|
{ Submitted by "Marc Weustink" on 2004-07-11 }
|
||||||
|
{ e-mail: marc@freepascal.org }
|
||||||
|
program floatres;
|
||||||
|
|
||||||
|
{$mode objfpc}
|
||||||
|
|
||||||
|
function CheckReal: Real;
|
||||||
|
begin
|
||||||
|
Result := 1/2;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function CheckDouble: Double;
|
||||||
|
begin
|
||||||
|
Result := 1/2;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function CheckExtended: Extended;
|
||||||
|
begin
|
||||||
|
Result := 1/2;
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
n: Integer;
|
||||||
|
|
||||||
|
begin
|
||||||
|
for n := 1 to 1000 do CheckReal;
|
||||||
|
|
||||||
|
for n := 1 to 1000 do CheckDouble;
|
||||||
|
|
||||||
|
for n := 1 to 1000 do CheckExtended;
|
||||||
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user