mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 10:29:21 +02:00
* use 9 instead of 8 parameters, so one has to be passed on the stack
for ppc git-svn-id: trunk@2087 -
This commit is contained in:
parent
c423e23bb4
commit
6892958fdd
@ -1,14 +1,14 @@
|
|||||||
function f(l1,l2,l3,l4,l5,l6,l7,l8:longint):longint;
|
function f(l1,l2,l3,l4,l5,l6,l7,l8,l9:longint):longint;
|
||||||
begin
|
begin
|
||||||
f:=l1+l2+l3+l4+l5+l6+l7+l8;
|
f:=l1+l2+l3+l4+l5+l6+l7+l8+l9;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
l : longint;
|
l : longint;
|
||||||
begin
|
begin
|
||||||
l:=f(f(1,2,3,4,5,6,7,8),f(1,2,3,4,5,6,7,8),f(1,2,3,4,5,6,7,8),f(1,2,3,4,5,6,7,8),f(1,2,3,4,5,6,7,8),f(1,2,3,4,5,6,7,8),f(1,2,3,4,5,6,7,8),f(1,2,3,4,5,6,7,8));
|
l:=f(f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9),f(1,2,3,4,5,6,7,8,9));
|
||||||
writeln('Got ',l,' expected ',8*(1+2+3+4+5+6+7+8));
|
writeln('Got ',l,' expected ',9*(1+2+3+4+5+6+7+8+9));
|
||||||
if l<>8*(1+2+3+4+5+6+7+8) then
|
if l<>9*(1+2+3+4+5+6+7+8+9) then
|
||||||
begin
|
begin
|
||||||
writeln('Error!');
|
writeln('Error!');
|
||||||
halt(1);
|
halt(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user