tw2220.pp 606 B

12345678910111213141516171819202122232425262728
  1. { Source provided for Free Pascal Bug Report 2220 }
  2. { Submitted by "marco" on 2002-11-06 }
  3. { e-mail: [email protected] }
  4. {$H+}
  5. {$ifdef fpc}{$MODE DELPHI}{$endif}
  6. // NO OUTPUT, GDB SHOWS SIGSEGV IN DECR_REF
  7. type bla=class
  8. freceivebuffer : array[0..4095] of char;
  9. flastresponse : String;
  10. procedure themethod;
  11. end;
  12. procedure bla.themethod;
  13. var i : longint;
  14. begin
  15. i:=10;
  16. flastresponse:=copy(freceivebuffer,1,I-1);
  17. writeln('point 1');
  18. end;
  19. var x : bla;
  20. begin
  21. x:=bla.create;
  22. x.themethod;
  23. writeln('point 2');
  24. end.