瀏覽代碼

* adapt exponent used in test to supported float type

git-svn-id: trunk@26304 -
florian 11 年之前
父節點
當前提交
4258fe6765
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tests/webtbs/tw3161.pp

+ 6 - 1
tests/webtbs/tw3161.pp

@@ -19,7 +19,12 @@ begin
   try
  { When I don't do "uses Libc",
    this line raises RE 205 (EOverflow). }
- A:=1e800; Writeln(Exp(A));
+{$ifdef FPC_SUPPORT_EXTENDED}
+ A:=1e800;
+{$else FPC_SUPPORT_EXTENDED}
+ A:=1e200;
+{$endif FPC_SUPPORT_EXTENDED}
+ Writeln(Exp(A));
  except
    writeln('Exception raised');
    err:=false;