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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/webtbf/tw4445.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
{ %fail }
 
2
 
 
3
{ Source provided for Free Pascal Bug Report 4445 }
 
4
{ Submitted by "lito steel" on  2005-10-17 }
 
5
{ e-mail: litosteel@yahoo.com }
 
6
{ those are the definitions }
 
7
const
 
8
  StackMax = 10;
 
9
var
 
10
       Stack:array[1..StackMax] of double;
 
11
       StackTop: integer = 0;
 
12
 
 
13
{in this procedure the compiler complains}
 
14
procedure aAND;
 
15
var a: double;
 
16
begin
 
17
  a := Stack[StackTop];
 
18
  dec(StackTop);
 
19
  Stack[StackTop] := Stack[StackTop] and a;
 
20
end;
 
21
 
 
22
begin
 
23
  aand;
 
24
end.