From f0c0d8a033f8ece2dc406f6b59abff9b9a480b6f Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 12 Oct 2022 21:56:30 +0200 Subject: [PATCH] + test for #22809 which is meanwhile resolved --- tests/webtbs/tw22809.pp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/webtbs/tw22809.pp 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.