* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gnat.dg / stack_check3.adb
blob3bb859c82f804c20e1a0b8c2b4e2444267db3016
1 -- { dg-do compile }
2 -- { dg-require-stack-check "" }
3 -- { dg-options "-O -fstack-check" }
5 package body Stack_Check3 is
7 type Int_Arr is array (1 .. 34) of Integer;
9 type Rec (D : Boolean := False) is
10 record
11 case D is
12 when True => IA : Int_Arr;
13 when False => null;
14 end case;
15 end record;
17 type Rec_Arr is array (1 .. 256) of Rec;
19 protected Prot_Arr is
20 procedure Reset;
21 private
22 A : Rec_Arr;
23 end Prot_Arr;
25 protected body Prot_Arr is
26 procedure Reset is
27 begin
28 A := (others => (D => False));
29 end Reset;
30 end Prot_Arr;
32 procedure Reset is
33 begin
34 Prot_Arr.Reset;
35 end Reset;
37 end Stack_Check3;