3 with System
; use System
;
4 with Ada
.Text_IO
; use Ada
.Text_IO
;
7 type Short
is mod 2**16;
13 for R_L
'Bit_Order use Low_Order_First
;
14 for R_L
'Scalar_Storage_Order use Low_Order_First
;
21 for R_H
'Bit_Order use High_Order_First
;
22 for R_H
'Scalar_Storage_Order use High_Order_First
;
28 procedure Dump
(Name
: String; S
: Short
; C
: Character) is
30 Put_Line
(Name
& " = (S =>" & S
'Img & ", C => '" & C
& "')");
38 Dump
("X_L", X_L
.S
, X_L
.C
);
39 -- { dg-output "X_L = \\(S => 12345, C => 'a'\\).*\n" }
43 Dump
("X_H", X_H
.S
, X_H
.C
);
44 -- { dg-output "X_H = \\(S => 23456, C => 'b'\\).*\n" }
47 Dump
("X_H", X_H
.S
, X_H
.C
);
48 -- { dg-output "X_H = \\(S => 12345, C => 'a'\\).*\n" }