4 with Unchecked_Conversion;
8 type Digit_Type is range 0..15;
10 type Frequency_Type is array( 1..12) of Digit_Type;
11 pragma Pack(Frequency_Type);
13 type Element_Type is record
17 type Array_Type is array (Natural range <>) of Element_Type;
19 type List_Type is record
20 A : Array_Type (0..1);
22 for List_Type'Alignment use 4;
24 type Pointer_Type is access Element_Type;
25 function To_Ptr is new Unchecked_Conversion(System.Address, Pointer_Type);
27 function Pointer (Pos : Natural; List : List_Type) return Pointer_Type is
29 return To_Ptr(List.A(Pos)'Address); -- { dg-warning "source alignment" "" { target alpha*-*-* arm*-*-* hppa*-*-* ia64-*-* mips*-*-* sparc*-*-* } }