ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gnat.dg/stack_usage6.adb

13 lines
242 B
Ada

-- { 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;