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

« back to all changes in this revision

Viewing changes to fpcsrc/tests/test/testv7.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
{ %VERSION=1.1 }
 
2
program testv2;
 
3
 
 
4
uses variants,varutils;
 
5
 
 
6
Procedure TestReal;
 
7
 
 
8
Var
 
9
  V : Variant;
 
10
  R : Real;
 
11
 
 
12
begin
 
13
  Writeln('Real assignment');
 
14
  R:=1.0E-1;
 
15
  V:=R;
 
16
  DumpVariant(TVarData(V));
 
17
end;
 
18
 
 
19
Procedure TestDouble;
 
20
 
 
21
Var
 
22
  V : Variant;
 
23
  R : Double;
 
24
 
 
25
begin
 
26
  Writeln('Double assignment');
 
27
  R:=2.0E-2;
 
28
  V:=R;
 
29
  DumpVariant(TVarData(V));
 
30
end;
 
31
 
 
32
Procedure TestExtended;
 
33
 
 
34
Var
 
35
  V : Variant;
 
36
  R : Extended;
 
37
 
 
38
begin
 
39
  Writeln('Extended assignment');
 
40
  R:=3.0E-3;
 
41
  V:=R;
 
42
  DumpVariant(TVarData(V));
 
43
end;
 
44
 
 
45
Procedure TestSingle;
 
46
 
 
47
Var
 
48
  V : Variant;
 
49
  R : Single;
 
50
 
 
51
begin
 
52
  Writeln('Single assignment');
 
53
  R:=4.0E-4;
 
54
  V:=R;
 
55
  DumpVariant(TVarData(V));
 
56
end;
 
57
 
 
58
begin
 
59
  TestReal;
 
60
  TestDouble;
 
61
  TestExtended;
 
62
  TestSingle;
 
63
end.