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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/webtbs/tw3005.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 3005 }
 
2
{ Submitted by "Michalis Kamburelis" on  2004-03-04 }
 
3
{ e-mail: michalis@camelot.homedns.org }
 
4
uses Math;
 
5
begin
 
6
 { This already works (result is integer) }
 
7
 Writeln((-2) ** 2);
 
8
 { Two things below do not work currently }
 
9
 Writeln(Power(-2.0, 2.0));
 
10
 if Power(-2.0, 2.0)<>4 then
 
11
   halt(1);
 
12
 Writeln((-2.0) ** 2.0);
 
13
 if (-2.0) ** 2.0<>4 then
 
14
   halt(1);
 
15
 writeln('ok');
 
16
end.