PR testsuite/86649
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / pack13.ads
blob4594ab7ca034c647e3805e264a1bf8c57844e27a
1 -- { dg-do compile }
3 package Pack13 is
5 generic
6 type Value_Type is private;
7 Value : in out Value_Type;
8 package G is end G;
10 type Rec is record
11 B : Boolean;
12 end record;
13 for Rec use record
14 B at 0 range 8 .. 8;
15 end record;
16 for Rec'size use 9;
18 type Arr is array (Boolean) of Rec;
19 pragma Pack (Arr);
21 A : Arr;
23 package My_G is new G (Boolean, A(True).B);
25 end Pack13;