diff --git a/tests/webtbs/tw22809.pp b/tests/webtbs/tw22809.pp new file mode 100644 index 0000000000..d835f392c8 --- /dev/null +++ b/tests/webtbs/tw22809.pp @@ -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.