summaryrefslogtreecommitdiff
path: root/tests/test/tenum6.pp
blob: ea17b9b3b4096775af4747fbc2225fdf0b2548f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
var
  b : boolean;
  b8 : ByteBool;
  b16 : WordBool;
  b32 : LongBool;
  b64 : QWordBool;
  s : string;

begin
  b:=false;
  str(b,s);
  if s<>'FALSE' then
    halt(1);

  b8:=false;
  str(b8,s);
  if s<>'FALSE' then
    halt(1);

  b16:=false;
  str(b16,s);
  if s<>'FALSE' then
    halt(1);

  b32:=false;
  str(b32,s);
  if s<>'FALSE' then
    halt(1);

  b64:=false;
  str(b64,s);
  if s<>'FALSE' then
    halt(1);

  writeln('ok');
end.