Browse Source

+ test for #22809 which is meanwhile resolved

florian 2 years ago
parent
commit
f0c0d8a033
1 changed files with 20 additions and 0 deletions
  1. 20 0
      tests/webtbs/tw22809.pp

+ 20 - 0
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.