Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / tbf / tb0027.pp
Size: Mime:
{ %FAIL }
{ Old file: tbf0155.pp }
{ Asm, Missing string return for asm functions }

{ this is not a real bug but rather a feature :
  assembler function are only accepted for
  simple return values
  i.e. either in register or FPU  (PM) }

{ so for the moment this is rejected code ! }

function asmstr:string;assembler;
asm
        movl    __RESULT,%edi
        movl    $0x4101,%al
        stosw
end;

begin
  writeln(asmstr);
end;