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

{ class constructors are not allowed }
program thlp12;

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

type
  TObjectHelper = class helper for TObject
    class constructor Create;
  end;

class constructor TObjectHelper.Create;
begin
end;

begin
end.