浏览代码

Merged revisions 543 via svnmerge from
/trunk

git-svn-id: branches/fixes_2_0@1152 -

peter 20 年之前
父节点
当前提交
6d17d83b71
共有 3 个文件被更改,包括 23 次插入0 次删除
  1. 1 0
      .gitattributes
  2. 1 0
      rtl/linux/system.pp
  3. 21 0
      tests/webtbs/tw4100.pp

+ 1 - 0
.gitattributes

@@ -6003,6 +6003,7 @@ tests/webtbs/tw4078.pp svneol=native#text/plain
 tests/webtbs/tw4089.pp svneol=native#text/plain
 tests/webtbs/tw4093.pp svneol=native#text/plain
 tests/webtbs/tw4098.pp svneol=native#text/plain
+tests/webtbs/tw4100.pp svneol=native#text/plain
 tests/webtbs/tw4115.pp svneol=native#text/plain
 tests/webtbs/tw4119.pp svneol=native#text/plain
 tests/webtbs/tw4140.pp svneol=native#text/plain

+ 1 - 0
rtl/linux/system.pp

@@ -233,6 +233,7 @@ end;
 
 
 Begin
+  SysResetFPU;
   IsConsole := TRUE;
   IsLibrary := FALSE;
   StackLength := InitialStkLen;

+ 21 - 0
tests/webtbs/tw4100.pp

@@ -0,0 +1,21 @@
+{ %result=217 }
+
+{ Source provided for Free Pascal Bug Report 4100 }
+{ Submitted by "Markus Roberts" on  2005-06-20 }
+{ e-mail: [email protected] }
+{$linklib c}
+
+    uses SysUtils;
+    var
+        X,Y,Z : Extended;
+        I     : integer;
+    begin
+        X := 0.0;
+        Y := 1.0;
+        Z := Y/X;
+        I := 7;
+        writeln('test');
+        writeln(StrToFloat('1e7'));
+        writeln(Z);
+        end.
+