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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/webtbs/tw1915.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
PROGRAM SetIncl;
 
2
{
 
3
    This program demonstrates a set inclusion test bug.
 
4
    (After two days passed to track down a very perverse program error....)
 
5
    (By Louis Jean-Ruichard)
 
6
}
 
7
TYPE
 
8
    eAttr   = ( e0, e1, e2, e3, e4, e5, e6, e7 );
 
9
    entityP = ^entity;
 
10
    entity  =
 
11
            RECORD
 
12
                attr    : SET OF eAttr;
 
13
            END;
 
14
VAR
 
15
    ep  : entityP;
 
16
    e   : entity;
 
17
BEGIN
 
18
    e.attr:=[e2,e4,e7,e1,e0];
 
19
    WITH e DO
 
20
            IF ([e1,e0] <= attr)
 
21
            THEN Writeln('A1: [e1,e0] is included in attr')
 
22
    ;
 
23
    New(ep);
 
24
    ep^.attr:=[e2,e4,e7,e1,e0];
 
25
    WITH ep^ DO
 
26
            IF ([e1,e0] <= attr)
 
27
            THEN Writeln('A2: [e1,e0] is included in attr')
 
28
            ELSE
 
29
             begin
 
30
              Writeln('A2 statement incorrectly executed');
 
31
              Halt(1);
 
32
             end;
 
33
    ;
 
34
END.