PR ipa/83051
[official-gcc.git] / gcc / testsuite / gnat.dg / debug14.adb
blob2cb91072740875071a1572dec2668c7622f7b8df
1 -- { dg-do compile }
2 -- { dg-options "-g -fgnat-encodings=minimal" }
4 procedure Debug14 is
6 type Db_Kind_T is (Raw, Relational, Object);
8 type Db_Model_T (Kind : Db_Kind_T) is
9 record
11 case Kind is
13 when Raw =>
14 Fs_Type : Integer;
16 when Relational | Object =>
17 Vendor_Id : Integer;
19 case Kind is
20 when Relational =>
21 N_Tables : Integer;
23 when others =>
24 null;
25 end case;
27 end case;
29 end record;
31 type Raw_Db_T is new Db_Model_T (Kind => Raw);
32 type Raw_Db_P is access Raw_Db_T;
34 Db : Raw_Db_P := new Raw_Db_T;
36 begin
37 null;
38 end;