mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-05 12:47:27 +01:00
+ test for procedures with many parameters (to test parameter passing
via the stack for processors with many registers)
This commit is contained in:
parent
c49702e402
commit
c1095adab4
34
tests/test/cg/tmanypar.pp
Normal file
34
tests/test/cg/tmanypar.pp
Normal file
@ -0,0 +1,34 @@
|
||||
procedure t(a,b,c,d,e,f,g,h,i,j,k,l: cardinal);
|
||||
begin
|
||||
if (a <> $deadbeef) then
|
||||
halt(1);
|
||||
if (b <> $cafebabe) then
|
||||
halt(2);
|
||||
if (c <> $BeC0ffee) then
|
||||
halt(3);
|
||||
if (d <> $C001D00D) then
|
||||
halt(4);
|
||||
if (e <> $feeb1e) then
|
||||
halt(5);
|
||||
if (f <> cardinal($abba-$ceedee)) then
|
||||
halt(6);
|
||||
if (g <> $feedface) then
|
||||
halt(7);
|
||||
if (h <> $badfade5) then
|
||||
halt(8);
|
||||
if (i <> $deafb00b) then
|
||||
halt(9);
|
||||
if (j <> $badc0c0a) then
|
||||
halt(10);
|
||||
if (k <> $2badf001) then
|
||||
halt(11);
|
||||
if (l <> $defaced) then
|
||||
halt(12);
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
t($deadbeef,$cafebabe,$BeC0ffee,$C001D00D,$feeb1e,cardinal($abba-$ceedee),
|
||||
$feedface,$badfade5,$deafb00b,$badc0c0a,$2badf001,$defaced)
|
||||
end.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user