mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 21:49:43 +02:00

the result location is a simple location (a single register/reference) (mantis #22490) * print an error when accessing "result" in a nostack pure assembler routine if the result location is not simple git-svn-id: trunk@22166 -
12 lines
155 B
ObjectPascal
12 lines
155 B
ObjectPascal
{ %cpu=i386}
|
|
{ %fail }
|
|
|
|
{$mode objfpc}{$ASMMODE INTEL}
|
|
function Test():qword;assembler;nostackframe;
|
|
asm
|
|
mov result,1
|
|
end;
|
|
begin
|
|
writeln(Test());
|
|
end.
|