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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/tbs/tb0529.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
{ It tests conversion from "array of char" to "array of PChar" }
 
2
 
 
3
function DoTest(params: array of PChar): string;
 
4
var
 
5
  i: integer;
 
6
  res: string;
 
7
begin
 
8
  res:='';
 
9
  for i:=Low(params) to High(params) do
 
10
    res:=res + params[i];
 
11
  DoTest:=res;
 
12
end;
 
13
 
 
14
var
 
15
  s: string;
 
16
begin
 
17
  s:=DoTest(['1', '2', '3']);
 
18
  if s <> '123' then begin
 
19
    writeln('Test failed. S=', s);
 
20
    Halt(1);
 
21
  end;
 
22
end.