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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/test/tinline5.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
{$inline on}
 
2
{$mode objfpc}
 
3
 
 
4
type
 
5
  tc = class
 
6
    lf: longint;
 
7
    procedure t(const l: longint); inline;
 
8
  end;
 
9
 
 
10
var
 
11
  a: longint;
 
12
 
 
13
procedure tc.t(const l: longint); inline;
 
14
begin
 
15
  lf := 10;
 
16
  if (l <> 5) then
 
17
    begin
 
18
      writeln('error class');
 
19
      halt(1);
 
20
    end;
 
21
end;
 
22
 
 
23
 
 
24
procedure t(const l: longint); inline;
 
25
begin
 
26
  a := 10;
 
27
  if (l <> 5) then
 
28
    begin
 
29
      writeln('error proc');
 
30
      halt(1);
 
31
    end;
 
32
end;
 
33
 
 
34
var
 
35
  c: tc;
 
36
 
 
37
begin
 
38
  c := tc.create;
 
39
  c.lf := 5;
 
40
  c.t(c.lf);
 
41
  a := 5;
 
42
  t(a);
 
43
end.