Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/controlled7.adb @ 140:4e440907fcbf
copy CbC goto flang in cfgexpand
remove some CbC unnecessary code
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Nov 2018 00:24:45 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- PR ada/53766 -- Reported by Duncan Sands <baldrick@gcc.gnu.org> -- { dg-do compile } -- { dg-options "-gnatp" } with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Controlled7 is procedure Proc (Offset : Storage_Offset) is begin if Offset + Unbounded_String'Max_Size_In_Storage_Elements >= 16 then raise Program_Error; end if; end; end Controlled7;