tb0027.pp 434 B

123456789101112131415161718192021
  1. { %FAIL }
  2. { Old file: tbf0155.pp }
  3. { Asm, Missing string return for asm functions }
  4. { this is not a real bug but rather a feature :
  5. assembler function are only accepted for
  6. simple return values
  7. i.e. either in register or FPU (PM) }
  8. { so for the moment this is rejected code ! }
  9. function asmstr:string;assembler;
  10. asm
  11. movl __RESULT,%edi
  12. movl $0x4101,%al
  13. stosw
  14. end;
  15. begin
  16. writeln(asmstr);
  17. end;