summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw2923.pp
blob: 119fdf7e6b2f320a5cce52e0631561311573d123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ %opt=-O2 -CR }

{ Source provided for Free Pascal Bug Report 2923 }
{ Submitted by "Sergey Kosarevsky" on  2004-01-30 }
{ e-mail: netsurfer@au.ru }

{$mode objfpc}

Type tMyClass=Class
       Public
        Constructor Init;
     End;

Constructor tMyClass.Init;
Begin
   Inherited Create;
End;                        // <- line 9

Var A:tMyClass;

Begin
   A:=tMyClass.Init;
End.