summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw17546.pp
blob: 16d31d136a6ec78d1fe2ab1961def7dcafecc5fa (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
25
26
27
28
{ %opt=-gh }

{$MODE OBJFPC}

program test02;

{$STATIC ON}

type

  TDummyClass = class
    IdName: AnsiString; static;
  end;

var

  o: TDummyClass;

begin
  HaltOnNotReleased := true;
  TDummyClass.IdName := 'Test';
  TDummyClass.IdName := TDummyClass.IdName + 'a';
  o := TDummyClass.Create;
  WriteLn('Here we go');
  o.Free;
  WriteLn('We did it!');
end.