fpc/tests/webtbs/tw2131.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

18 lines
339 B
ObjectPascal

program bug2131;
var
TestStr : string;
correct : string;
begin
if sizeof(extended) > sizeof(double) then
correct := ' 1.8E+0012'
else
correct := ' 1.8E+012';
Str (1.789e12:1, TestStr);
if (teststr <> correct) then
begin
writeln('error, got "',teststr,'" expected "',correct,'"');
halt(1);
end
end.