Debian Codegraph @

gcc/testsuite/gnat.dg/stack_usage6.adb

raw
1 -- { dg-do compile }
2 -- { dg-options "-Wstack-usage=512" }
3
4 with Stack_Usage6_Pkg; use Stack_Usage6_Pkg;
5
6 procedure Stack_Usage6 (I : Index_Type) is
7 R : constant Rec := A (I);
8 begin
9 if R.D then
10 raise Program_Error;
11 end if;
12 end;