summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0025.pp
blob: 56765c3eb1f8e15b28b8f15404d20170e9e2d814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ Old file: tbs0029.pp }
{  tests typeof(object type)                         OK 0.99.1 (FK) }

type
  TA = object
    constructor init;
    procedure test;virtual;
  end;

  constructor TA.init;
    begin
    end;

  procedure TA.test;
    begin
    end;

var
   P: Pointer;

begin
   P := pointer(TypeOf(TA));
end.