summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/thlp10.pp
blob: 0cfd816404738bb2c4a5a426aa59a58eaf37ffac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ %FAIL }

{ destructors are not allowed }
program thlp10;

{$ifdef fpc}
  {$mode delphi}
{$endif}

type
  TObjectHelper = class helper for TObject
    destructor Destroy;
  end;

destructor TObjectHelper.Destroy;
begin
end;

begin
end.