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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/webtbs/tw2306.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 2306 }
 
2
{ Submitted by "Sergey Kosarevsky" on  2003-01-03 }
 
3
{ e-mail: netsurfer@au.ru }
 
4
{$H-}
 
5
 
 
6
Const LONG_STR_SIZE=4096;
 
7
 
 
8
Type tLongStr=Object  // try to change this
 
9
                      // to Record
 
10
        LStr:Array[0..LONG_STR_SIZE] Of Char;
 
11
        LLength:Longint;
 
12
     End;
 
13
 
 
14
 
 
15
Operator := (S:String) R:tLongStr;
 
16
Begin
 
17
   R.LLength:=Length(S);
 
18
   Move(S[1],R.LStr[1],Length(S));
 
19
End;
 
20
 
 
21
Var T:tLongStr;
 
22
 
 
23
Begin
 
24
   T:='Hello';
 
25
   if (T.LLength<>5) or
 
26
      (T.LStr[1]<>'H') or
 
27
      (T.LStr[5]<>'o') then
 
28
    begin
 
29
      writeln('Error!');
 
30
      halt(1);
 
31
    end;
 
32
 
 
33
End.