view gcc/testsuite/gnat.dg/stack_usage6.adb @ 143:76e1cf5455ef

add cbc_gc test
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:24:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

-- { dg-do compile }
-- { dg-options "-Wstack-usage=512" }

with Stack_Usage6_Pkg; use Stack_Usage6_Pkg;

procedure Stack_Usage6 (I : Index_Type) is
   R : constant Rec := A (I);
begin
   if R.D then
     raise Program_Error;
   end if;
end;