tw2174.pp 625 B

12345678910111213141516171819202122232425262728293031323334353637
  1. { %FAIL }
  2. { Source provided for Free Pascal Bug Report 2174 }
  3. { Submitted by "Maarten Bekers" on 2002-10-13 }
  4. { e-mail: [email protected] }
  5. {$mode delphi}
  6. program test;
  7. type StringArrayObj = Object
  8. constructor Init(AllocStrings: Longint);
  9. destructor Done;
  10. end; { StringArrayObj }
  11. type pStringArrayObj = ^StringArrayObj;
  12. constructor StringArrayObj.Init(AllocStrings: Longint);
  13. begin
  14. end; { constructor Init }
  15. destructor StringArrayObj.Done;
  16. begin
  17. end; { destructor Done }
  18. var
  19. oo2,oo3: ^stringarrayobj;
  20. begin
  21. {!!!}
  22. new(oo2, init);
  23. new(oo3, init);
  24. writeln('one');
  25. writeln('two!');
  26. {!!!}
  27. end.