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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/tbs/tb0503.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
procedure testansi;
 
2
var
 
3
  s, q: ansistring;
 
4
begin
 
5
  s := 'hell';
 
6
  s := s+'o';
 
7
  q := '"';
 
8
  q := q+'''';
 
9
  s := s + q + s + 'abc';
 
10
  if (s <> 'hello"''helloabc') then
 
11
    halt(1);
 
12
  s := 'hell';
 
13
  s := s+'o';
 
14
  s := q+s+q;
 
15
  if (s <> '"''hello"''') then
 
16
    halt(2);
 
17
end;
 
18
 
 
19
 
 
20
procedure testshort;
 
21
var
 
22
  s, q: shortstring;
 
23
begin
 
24
  s := 'hell';
 
25
  s := s+'o';
 
26
  q := '"';
 
27
  q := q+'''';
 
28
  s := s + q + s + 'abc';
 
29
  if (s <> 'hello"''helloabc') then
 
30
    halt(3);
 
31
  s := 'hell';
 
32
  s := s+'o';
 
33
  s := q+s+q;
 
34
  if (s <> '"''hello"''') then
 
35
    halt(4);
 
36
end;
 
37
 
 
38
begin
 
39
  testansi;
 
40
  testshort;
 
41
end.