Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gnat.dg / oconst5.ads
blobf12a265d0d3c5eaccb00e2301340ed36bf5729fd
1 package OCONST5 is
3 type u1 is mod 2**1;
4 type u8 is mod 2**8;
6 type HI_Record is record
7 A, B : U8;
8 end record;
9 pragma Suppress_Initialization (HI_Record);
11 type R is record
12 Bit : U1;
13 Agg : HI_Record;
14 end record;
15 pragma Suppress_Initialization (R);
17 for R use record
18 Bit at 0 range 0 .. 0;
19 Agg at 0 range 1 .. 16;
20 end record;
22 My_R0 : R := (Bit => 0, Agg => (A => 3, B => 7));
23 My_R1 : R := (Bit => 1, Agg => (A => 3, B => 7));
25 procedure Check (Arg : R; Bit : U1);
27 end;