12345678910111213141516171819202122232425262728293031323334353637 |
- { %FAIL }
- { Source provided for Free Pascal Bug Report 2174 }
- { Submitted by "Maarten Bekers" on 2002-10-13 }
- { e-mail: [email protected] }
- {$mode delphi}
- program test;
- type StringArrayObj = Object
- constructor Init(AllocStrings: Longint);
- destructor Done;
- end; { StringArrayObj }
- type pStringArrayObj = ^StringArrayObj;
- constructor StringArrayObj.Init(AllocStrings: Longint);
- begin
- end; { constructor Init }
- destructor StringArrayObj.Done;
- begin
- end; { destructor Done }
- var
- oo2,oo3: ^stringarrayobj;
- begin
- {!!!}
- new(oo2, init);
- new(oo3, init);
- writeln('one');
- writeln('two!');
- {!!!}
- end.
|