PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / array11.adb
blob7be61c4b63198fa39b856f7a9fe9f9a1abed756c
1 -- { dg-do compile }
3 procedure Array11 is
5 type Rec is null record;
6 type Ptr is access all Rec;
8 type Arr1 is array (1..8) of aliased Rec; -- { dg-warning "padded" }
9 type Arr2 is array (Long_Integer) of aliased Rec; -- { dg-warning "padded" }
11 A1 : Arr1;
12 A2 : Arr2; -- { dg-warning "Storage_Error" }
14 begin
15 null;
16 end;