3 with Unchecked_Conversion
;
5 package Static_Initializer3
is
7 type Byte
is range 0 .. 16#FF#
;
10 type Word
is range 0 .. 16#FFFF#
;
23 function Conv
is new Unchecked_Conversion
(R
, Byte
);
25 C1
: constant Byte
:= Conv
((true, false));
27 C2
: constant Word
:= Word
(C1
);
29 end Static_Initializer3
;