fpc/tests/webtbs/tw17546.pp
2010-10-06 08:46:36 +00:00

29 lines
363 B
ObjectPascal

{ %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.