summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0120.pp
blob: 5c92571b5fb0082c54d10fa9d802ad1c99937aba (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
{ Old file: tbs0140.pp }
{ Shows that interdependent units still are not OK.     OK 0.99.6 (PFV) }

unit tb0120;

{
 The first compilation runs fine.
 A second compilation (i.e; .ppu files exist already) crashes the compiler !!
}

interface

type
 TObject = object
  constructor Init(aPar:byte);
 end;

implementation

uses ub0120;

constructor TObject.Init(aPar:byte);
 begin
  if aPar=0 then Message(Self);
 end;

end.