tb0026.pp 473 B

123456789101112131415161718192021
  1. { %FAIL }
  2. { Old file: tbf0153.pp }
  3. { Asm, indexing a local/para var should produce an error like tp7 OK 0.99.9 (PFV) }
  4. {$asmmode att}
  5. procedure asmfunc(p:pointer);assembler;
  6. asm
  7. {
  8. this is changed into movl %eax,(%ebx+8) which is not correct, and tp7
  9. also doesn't allow 'mov p[bx],ax' or 'mov p+bx,ax'
  10. Solution: for parameters and locals the index must be turned off
  11. Don't forget to check the intel assembler also
  12. }
  13. movl %eax,p(%ebx)
  14. end;
  15. begin
  16. end.