summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw4826.pp
blob: 134f9d9350067aa5c2066f3cbac49f5c9cdb7f99 (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
29
30
31
{ %OPT=-vn -Sen }

{ Source provided for Free Pascal Bug Report 4826 }
{ Submitted by "Ivo Steinmann" on  2006-02-20 }
{ e-mail: isteinmann@bluewin.ch }
program bug;

{$mode delphi}

type
  TTest = class
  private
    FFoobar: Integer;
  protected
    property Foobar: Integer read FFoobar write FFoobar;
  public
    constructor Create;
  end;

constructor TTest.Create;
begin
  inherited Create;
  Foobar := 0;
end;

var
  Test: TTest;
begin
  Test := TTest.Create;
  Test.Free;
end.