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

27 lines
450 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 2317 }
{ Submitted by "Sergey Kosarevsky" on 2003-01-09 }
{ e-mail: netsurfer@au.ru }
{$static on}
Type tObject=Object
Function GetVMT:Pointer;Static;
End;
Function tObject.GetVMT:Pointer;
Begin
Exit(Self);
End;
var
l : longint;
Begin
l:=Longint(tObject.GetVMT());
WriteLn('self in static: ',l);
if l<>0 then
begin
writeln('Error!');
halt(1);
end;
End.