mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:39:31 +02:00
+ new test (already works)
git-svn-id: trunk@7784 -
This commit is contained in:
parent
42f036b66c
commit
3d5d454a05
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
tests/webtbs/tw9108.pp
Normal file
11
tests/webtbs/tw9108.pp
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user