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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/test/units/math/tnaninf.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
uses
 
2
  math;
 
3
 
 
4
begin
 
5
  if not(isnan(nan)) then
 
6
    begin
 
7
      writeln('error 1');
 
8
      halt(1);
 
9
    end;
 
10
  if not(isinfinite(infinity)) then
 
11
    begin
 
12
      writeln('error 2');
 
13
      halt(1);
 
14
    end;
 
15
  if isnan(12341234) then
 
16
    begin
 
17
      writeln('error 3');
 
18
      halt(1);
 
19
    end;
 
20
  if isinfinite(0) then
 
21
    begin
 
22
      writeln('error 4');
 
23
      halt(1);
 
24
    end;
 
25
  if isinfinite(12341234) then
 
26
    begin
 
27
      writeln('error 5');
 
28
      halt(1);
 
29
    end;
 
30
end.