RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / object_overflow2.adb
bloba429291e80a4e2caeb6144fcee9061b4748eebf1
1 -- { dg-do compile }
3 with Interfaces.C; use Interfaces.C;
5 procedure Object_Overflow2 is
7 procedure Proc (x : Boolean) is begin null; end;
9 type Arr is array(0 .. ptrdiff_t'Last) of Boolean;
10 Obj : Arr; -- { dg-warning "Storage_Error" }
12 begin
13 Obj(1) := True;
14 Proc (Obj(1));
15 end;