* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Don't
[official-gcc.git] / gcc / testsuite / gnat.dg / debug13.adb
blobf54a4e09770241f1b834d69c6424c9e6ee942c70
1 -- { dg-do compile }
2 -- { dg-options "-O2 -g" }
4 package body Debug13 is
6 procedure Compile (P : Natural)
7 is
8 Max_Pos : constant Natural := P;
9 type Position_Set is array (1 .. Max_Pos) of Boolean;
11 Empty : constant Position_Set := (others => False);
13 type Position_Set_Array is array (1 .. Max_Pos) of Position_Set;
15 Follow : Position_Set_Array := (others => Empty);
17 function Get_Follows return Position_Set;
19 procedure Make_DFA;
21 function Get_Follows return Position_Set is
22 Result : Position_Set := Empty;
23 begin
24 Result := Result or Follow (1);
26 return Result;
27 end Get_Follows;
29 procedure Make_DFA is
30 Next : constant Position_Set := Get_Follows;
31 begin
32 null;
33 end Make_DFA;
35 begin
36 Make_DFA;
37 end Compile;
39 end Debug13;