mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 22:29:57 +02:00
25 lines
436 B
ObjectPascal
25 lines
436 B
ObjectPascal
{ Source provided for Free Pascal Bug Report 2317 }
|
|
{ Submitted by "Sergey Kosarevsky" on 2003-01-09 }
|
|
{ e-mail: netsurfer@au.ru }
|
|
|
|
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.
|