view gcc/testsuite/gnat.dg/pack2.adb @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

-- { dg-do compile }
-- { dg-options "-gnatws" }

procedure Pack2 is

   type Bits_T is record
      B0, B1, B2: Boolean;
   end record;

   type State_T is record
      Valid : Boolean;
      Value : Bits_T;
   end record;
   pragma Pack (State_T);
      
   procedure Process (Bits : Bits_T) is begin null; end;
   
   State : State_T;

begin
   Process (State.Value);
end;