PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / object_overflow1.adb
blobba7f657e71027b78c7e04f577982dafd49da873a
1 -- { dg-do compile }
3 procedure Object_Overflow1 is
5 procedure Proc (x : Boolean) is begin null; end;
7 type Arr is array(Long_Integer) of Boolean;
8 Obj : Arr; -- { dg-warning "Storage_Error" }
10 begin
11 Obj(1) := True;
12 Proc (Obj(1));
13 end;