gcc/cp
[official-gcc.git] / gcc / testsuite / gnat.dg / discr19.adb
blob8f5c56b3fb5d74a6ab29297469d7c89805f091ab
1 -- { dg-do compile }
3 procedure Discr19 is
5 type Arr_Int_T is array (Integer range <>) of Integer;
7 type Abs_Tag_Rec_T (N : Integer; M : Integer) is abstract tagged record
8 Arr_Int : Arr_Int_T (1..M);
9 end record;
11 type Tag_Rec_T (M : Integer)
12 is new Abs_Tag_Rec_T (N => 1, M => M) with null record;
14 begin
15 null;
16 end;