summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw34818.pp
blob: 9315f7bfa0217e2bdcddcbe37a3adb86b21421c2 (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
{ %OPT=-O1s }
program Project1;

var CharValue: cardinal;
begin
  CharValue:=12;
  case CharValue of
   $00000000..$0000007f:begin
     writeln('ok');
     halt(0);
   end;
   $00000080..$000007ff:begin
     halt(1);
   end;
   $00000800..$0000ffff:begin
     halt(1);
   end;
   $00010000..$0010ffff:begin
     halt(1);
   end;
   $00200000..$03ffffff:begin
     halt(1);
   end;
  end;
end.