Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gnat.dg / pack2.adb
blob7837c8ad8bdcb50ca9dbd3d40358679f880bff27
1 -- { dg-do compile }
2 -- { dg-options "-gnatws" }
4 procedure Pack2 is
6 type Bits_T is record
7 B0, B1, B2: Boolean;
8 end record;
10 type State_T is record
11 Valid : Boolean;
12 Value : Bits_T;
13 end record;
14 pragma Pack (State_T);
16 procedure Process (Bits : Bits_T) is begin null; end;
18 State : State_T;
20 begin
21 Process (State.Value);
22 end;