mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 20:30:40 +02:00
* fixed test program - bug #40072
This commit is contained in:
parent
e9ce3be110
commit
c631d86122
29
rtl/emx/tests/heapsize.pas
Normal file
29
rtl/emx/tests/heapsize.pas
Normal file
@ -0,0 +1,29 @@
|
||||
program heapsize;
|
||||
|
||||
{$AsmMode ATT}
|
||||
|
||||
procedure syscall; external name '___SYSCALL';
|
||||
|
||||
var a:longint;
|
||||
|
||||
procedure writeheapsize;
|
||||
|
||||
begin
|
||||
asm
|
||||
movl $0x7f00,%eax
|
||||
xorl %edx,%edx
|
||||
call syscall
|
||||
mov %eax,A
|
||||
end;
|
||||
writeln(a);
|
||||
end;
|
||||
|
||||
begin
|
||||
writeheapsize;
|
||||
asm
|
||||
movl $0x7f00,%eax
|
||||
movl $327680,%edx
|
||||
call syscall
|
||||
end;
|
||||
writeheapsize;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user