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

{ class destructors are not allowed }
program thlp11;

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

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

class destructor TObjectHelper.Destroy;
begin
end;

begin
end.