mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 11:10:36 +02:00
parent
131c1e1b93
commit
d3d4de7818
22
tests/webtbs/tw39834.pp
Normal file
22
tests/webtbs/tw39834.pp
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ %OPT=-O- -O2}
|
||||||
|
{$mode objfpc}
|
||||||
|
program DivTest;
|
||||||
|
|
||||||
|
function fquotient(a, b: integer): integer; inline;
|
||||||
|
begin
|
||||||
|
result := a div b;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure test;
|
||||||
|
var seconds, min: integer;
|
||||||
|
begin
|
||||||
|
seconds := 3600 + 60 * 40 + 52;
|
||||||
|
min := fquotient(seconds, 60);
|
||||||
|
WriteLn(min);
|
||||||
|
if min<>100 then
|
||||||
|
halt(1);
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
test;
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user