summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw2317.pp
blob: 80ed3f81da29ccab14efb0b96918382c409ab3a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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.