analyzer: Fix PR analyzer/101980
[official-gcc.git] / gcc / testsuite / gnat.dg / array34.adb
blob62809cd0269154c769afb45a91a126719608c43e
1 -- { dg-do run }
3 procedure Array34 is
5 type Arr is array (1 .. 6) of Short_Short_Integer;
6 for Arr'Alignment use 4;
8 type Rec is record
9 A : Arr;
10 B: Short_Integer;
11 end record;
12 pragma Pack (Rec);
14 R : Rec;
16 begin
17 R.B := 31415;
18 R.A := (others => 0);
19 if R.B /= 31415 then
20 raise Program_Error;
21 end if;
22 end;