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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/webtbs/tw2492.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
{ Source provided for Free Pascal Bug Report 2492 }
 
2
{ Submitted by "Mattias Gaertner" on  2003-05-15 }
 
3
{ e-mail: mattias@freepascal.org }
 
4
program buggy;
 
5
 
 
6
{$ifdef fpc}{$mode objfpc}{$H+}{$endif}
 
7
 
 
8
uses
 
9
  Classes, SysUtils, TypInfo;
 
10
 
 
11
type
 
12
  TMyClassA = class;
 
13
 
 
14
  TMyClassB = class(TComponent)
 
15
  private
 
16
    FClassA: TMyClassA;
 
17
  published
 
18
    property ClassA: TMyClassA read FClassA write FClassA;
 
19
  end;
 
20
 
 
21
  TMyClassA = class(TComponent)
 
22
  end;
 
23
 
 
24
var
 
25
  MyClassA: TMyClassA;
 
26
begin
 
27
  MyClassA:=TMyClassA.Create(nil);
 
28
  writeln('PropertyCount=',
 
29
    GetTypeData(MyClassA.ClassInfo)^.PropCount);
 
30
  if GetTypeData(MyClassA.ClassInfo)^.PropCount<>2 then
 
31
    halt(1);
 
32
end.