mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 21:09:07 +02:00
+ test for #22809 which is meanwhile resolved
This commit is contained in:
parent
989895c82f
commit
f0c0d8a033
20
tests/webtbs/tw22809.pp
Normal file
20
tests/webtbs/tw22809.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
program Project1;
|
||||||
|
|
||||||
|
{$mode delphi}
|
||||||
|
|
||||||
|
uses
|
||||||
|
SysUtils;
|
||||||
|
|
||||||
|
var
|
||||||
|
v : Double;
|
||||||
|
begin
|
||||||
|
try
|
||||||
|
TryStrToFloat('9e9999', v);
|
||||||
|
except
|
||||||
|
on e: Exception do begin
|
||||||
|
writeln('Unexpected exception thrown: ',e.ClassName);
|
||||||
|
halt(1);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
writeln('ok')
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user