2 -- { dg-options "-fstack-check" }
4 -- This test requires architecture- and OS-specific support code for unwinding
5 -- through signal frames (typically located in *-unwind.h) to pass. Feel free
6 -- to disable it if this code hasn't been implemented yet.
8 procedure Stack_Check2 is
10 function UB return Integer is
15 type A is Array (Positive range <>) of Integer;
17 procedure Consume_Stack (N : Integer) is
18 My_A : A (1..UB); -- 8 KB dynamic
32 Consume_Stack (Integer'Last);
35 when Storage_Error => null;