bug0087.pp 289 B

123456789101112131415
  1. {
  2. BP Error message is 'Pointer variable Expected'
  3. }
  4. type
  5. tobj=object
  6. l : longint;
  7. constructor init;
  8. end;
  9. var
  10. o : tobj;
  11. begin
  12. new(o); {This will create a internal error 9999}
  13. new(o,init); {This will create a Segfault and Core Dump under linux}
  14. end.