RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / controlled7.adb
blobbdcf67ac466087546d1690424aa8e1d96c104699
1 -- PR ada/53766
2 -- Reported by Duncan Sands <baldrick@gcc.gnu.org>
4 -- { dg-do compile }
5 -- { dg-options "-gnatp" }
7 with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
9 package body Controlled7 is
11 procedure Proc (Offset : Storage_Offset) is
12 begin
13 if Offset + Unbounded_String'Max_Size_In_Storage_Elements >= 16 then
14 raise Program_Error;
15 end if;
16 end;
18 end Controlled7;