Sfoglia il codice sorgente

+ test for #22809 which is meanwhile resolved

florian 2 anni fa
parent
commit
f0c0d8a033
1 ha cambiato i file con 20 aggiunte e 0 eliminazioni
  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.