2 -- { dg-require-stack-check "" }
3 -- { dg-options "-fstack-check" }
5 -- This test requires architecture- and OS-specific support code for unwinding
6 -- through signal frames (typically located in *-unwind.h) to pass. Feel free
7 -- to disable it if this code hasn't been implemented yet.
9 procedure Stack_Check1 is
11 type A is Array (1..2048) of Integer;
13 procedure Consume_Stack (N : Integer) is
14 My_A : A; -- 8 KB static
28 Consume_Stack (Integer'Last);
31 when Storage_Error => null;