Browse Source

+ new test (already works)

git-svn-id: trunk@7784 -
Jonas Maebe 18 years ago
parent
commit
3d5d454a05
2 changed files with 12 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 11 0
      tests/webtbs/tw9108.pp

+ 1 - 0
.gitattributes

@@ -8308,6 +8308,7 @@ tests/webtbs/tw9076a.pp svneol=native#text/plain
 tests/webtbs/tw9085.pp svneol=native#text/plain
 tests/webtbs/tw9098.pp svneol=native#text/plain
 tests/webtbs/tw9107.pp svneol=native#text/plain
+tests/webtbs/tw9108.pp svneol=native#text/plain
 tests/webtbs/tw9113.pp svneol=native#text/plain
 tests/webtbs/tw9128.pp svneol=native#text/plain
 tests/webtbs/ub1873.pp svneol=native#text/plain

+ 11 - 0
tests/webtbs/tw9108.pp

@@ -0,0 +1,11 @@
+program bug;
+
+function Func(a:longint): longint;
+begin
+  if (a >= 0) then Func:=Trunc(1.0*a) else Func:=-Trunc(1.0*a);
+end;
+
+begin
+  if Func(100) <> 100 then
+    halt(1);
+end.