fpc/tests/webtbf/tw2174.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

37 lines
624 B
ObjectPascal

{ %FAIL }
{ Source provided for Free Pascal Bug Report 2174 }
{ Submitted by "Maarten Bekers" on 2002-10-13 }
{ e-mail: fpc@elesoft.net }
{$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.