Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / tw2317.pp
Size: Mime:
{ 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.