3 with System
; use System
;
6 Rev_SSO
: constant Bit_Order
7 := Bit_Order
'Val (1 - Bit_Order
'Pos (Default_Bit_Order
));
9 type R
(D
: Integer) is record
21 V1
at 4 range 0 .. 31;
22 V2
at 4 range 0 .. 31;
23 Common
at 8 range 0 .. 31;
25 for R
'Scalar_Storage_Order use Rev_SSO
;
26 for R
'Bit_Order use Rev_SSO
;
28 procedure Check
(Common
, V
: Integer; X
: R
) is
30 if Common
/= X
.Common
then
46 X0
: R
:= (D
=> 0, Common
=> 1111, V1
=> 1234);
47 X1
: R
:= (D
=> 31337, Common
=> 2222, V2
=> 5678);
50 Check
(1111, 1234, X0
);
51 Check
(2222, 5678, X1
);