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

33 lines
533 B
ObjectPascal

{ %target=linux }
{ Source provided for Free Pascal Bug Report 3161 }
{ Submitted by "Michalis Kamburelis" on 2004-06-12 }
{ e-mail: michalis@camelot.homedns.org }
{$mode delphi}
uses
initc,
SysUtils,
math;
var A:Extended;
err : boolean;
begin
SetExceptionMask([]);
err:=true;
try
{ When I don't do "uses Libc",
this line raises RE 205 (EOverflow). }
A:=1e800; Writeln(Exp(A));
except
writeln('Exception raised');
err:=false;
end;
if err then
begin
writeln('error');
halt(1);
end;
end.