Răsfoiți Sursa

+ added

git-svn-id: trunk@325 -
Jonas Maebe 20 ani în urmă
părinte
comite
fe4e35d0cf
2 a modificat fișierele cu 13 adăugiri și 0 ștergeri
  1. 1 0
      .gitattributes
  2. 12 0
      tests/webtbs/tw4058.pp

+ 1 - 0
.gitattributes

@@ -6142,6 +6142,7 @@ tests/webtbs/tw4010.pp svneol=native#text/plain
 tests/webtbs/tw4013.pp svneol=native#text/plain
 tests/webtbs/tw4038.pp svneol=native#text/plain
 tests/webtbs/tw4055.pp svneol=native#text/plain
+tests/webtbs/tw4058.pp svneol=native#text/plain
 tests/webtbs/ub1873.pp svneol=native#text/plain
 tests/webtbs/ub1883.pp svneol=native#text/plain
 tests/webtbs/uw0555.pp svneol=native#text/plain

+ 12 - 0
tests/webtbs/tw4058.pp

@@ -0,0 +1,12 @@
+{$q+}
+program IntCalcBug;
+
+var i, j1, j2 : LongInt;
+
+begin
+	i := 52000;
+	j1 := 1440 - round (i/60);
+	j2 := -round (i/60) + 1440;
+        if (j1 <> j2) then
+          halt(1);
+end.