Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/alignment13.adb @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
-- { dg-do run } -- { dg-options "-gnatws" } procedure Alignment13 is type Rec is record I1 : aliased Short_Integer; I2 : Integer; end record; for Rec use record I1 at 0 range 0 .. 15; end record; R : Rec; begin if R.I2'Bit_Position /= 32 then raise Program_Error; end if; end;