Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/pack21.adb @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do compile } -- { dg-options "-gnatws" } procedure Pack21 is type Enum is (ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, ELEVEN, TWELVE, THIRTEEN, FOURTEEN, FIFTEEN); type Rec1 is record I1 : INTEGER range 0 .. 800; I2 : INTEGER range 0 .. 15 := 0; E : Enum; end record; pragma PACK (Rec1); type Rec2 is record F : Rec1; end record; for Rec2 use record F at 0 range 2 .. 19; end record; R1, R2 : Rec2; begin null; end;