~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/tests/webtbf/tw3662.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{ %fail }
 
2
 
 
3
{$ifdef fpc}{$MODE delphi}{$endif}
 
4
 
 
5
type
 
6
  TA = class(TInterfacedObject)
 
7
  public
 
8
    constructor Create;
 
9
  end;
 
10
 
 
11
  TB = class(TA)
 
12
    function Clone: TB;
 
13
  end;
 
14
 
 
15
 
 
16
constructor TA.Create;
 
17
begin
 
18
  inherited Create;
 
19
end;
 
20
 
 
21
function TB.Clone: TB;
 
22
var
 
23
  b: TB;
 
24
begin
 
25
  b := Create;
 
26
  writeln(integer(b));
 
27
  writeln(integer(self));
 
28
  Result := b;
 
29
end;
 
30
 
 
31
var
 
32
  aa,aa2: TB;
 
33
begin
 
34
  aa := TB.Create;
 
35
  aa2 := aa.Clone;
 
36
end.